[Rails] Re: Rails on shared hosting

2008-12-02 Thread Nellboy
I've been hoping to find a solution to hsphere and cpanel because i have clients that use these already for hosting... i spose i could switch them to a slice of my choosing, but for convenience sake, i'd rather stick with their hosts, so if anyone has anything on this, that would be useful... On

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Dave Smith
Frederick Cheung wrote: On 2 Dec 2008, at 10:48, Dave Smith wrote: many relationship). ? Fred yeah well in my mailinglist controller I have put @mailinglist_mailings = @mailinglist.mailings.collect so essentially very similar so does that mean I put an AJAX button in my view page to

[Rails] Re: New to Rails... Help!

2008-12-02 Thread Nellboy
Agile Web Development with Rails is the standard for getting up and running... also I like Practical Rest with Rails On Dec 2, 12:44 am, Jay Mark [EMAIL PROTECTED] wrote: William, thanks for your help in resolving this issue. It works great now. Thanks a lot. Please, if you know any good

[Rails] RubyPeople - I am after a Ruby on Rails Developer for the UK

2008-12-02 Thread Micky
Ruby-People.com - Due to recent relocation an opportunity has arisen for 2 creative and highly skilled Ruby on Rails Developers with at least 1 year commercial experience to join our client - a leading Internet services and hosting company. You will be joining a small focused team and will be

[Rails] Database Retrieval - user interface - is there a ?gem? that already does this?

2008-12-02 Thread Southside_Bruce
Hi, although I have about 25 years in the software/IT business as a Federal Government employee, somehow I have avoided Web development all this time... until now... I have an application at work that I want to tackle, and decided it would be a fantastic time to learn Ruby and RoR - for my

[Rails] MySQL Adapter on Rails 2.2

2008-12-02 Thread Joshua Partogi
Hi all, I've been searching through the list about configuring MySQL adapter on Rails 2.2, and it seems that this question is asked over and over again without any solution :-D Why did Rails 2.2 made configuring the mysql driver so difficult? Why is it a move backward in Rails 2.2? Why isn't

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Dave Smith
Frederick Cheung wrote: On 2 Dec 2008, at 11:27, Dave Smith wrote: @mailinglist_mailings = @mailinglist.mailings.collect I think AJAX is an orthogonal issue - you could have a regular button or an ajax one and it wouldn't change much. Fred to be honest i dont really care how the emails

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 13:26, Dave Smith wrote: Frederick Cheung wrote: On 2 Dec 2008, at 11:27, Dave Smith wrote: @mailinglist_mailings = @mailinglist.mailings.collect I think AJAX is an orthogonal issue - you could have a regular button or an ajax one and it wouldn't change much. Fred

[Rails] Re: To store the combo box id value from one table another table in database+rails

2008-12-02 Thread balaji rajagopal
Hi *Frederick Cheung* Good Evening... Your Guideness very useful for me and I got the combo box id value. Thank you sir... Thanks Regards Balaji.R On 12/2/08, Frederick Cheung [EMAIL PROTECTED] wrote: On 2 Dec 2008, at 10:18,

[Rails] Re: Warning: Ambiguous first argument; make sure.

2008-12-02 Thread Heinz Strunk
Thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe

[Rails] Getting IP address through Ruby On Rails

2008-12-02 Thread hema gonaboina
Hi, Can Anyone tell me how to get the IP address of the system through rails application? The system's IP on which the application running Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: To store the combo box id value from one table another table in database+rails

2008-12-02 Thread balaji rajagopal
Hi *Frederick Cheung* I use one controller+five tables+one detailed form( it includes five form or page).First page enter the data and click next button(get the data using session) and final to click save button to store all data to corresponding table. But controller page code

[Rails] Re: To store the combo box id value from one table another table in database+rails

2008-12-02 Thread balaji rajagopal
Hi i got error... Mysql::Error: #23000Column 'resorttypeid' cannot be null: INSERT INTO `resort_basics` (`resortclassid`, `resortname`, `resorttypeid`, `seasonid`, `website`) VALUES(1, 'mahapalipuram ', NULL, NULL, 'www.mpm.com') RAILS_ please help me ... Thanks balaji On

[Rails] Re: aasm callback order?

2008-12-02 Thread Teedub
This is a bit more verbose. http://blog.methodmissing.com/2006/11/16/beyond-callbacks-for-complex-model-lifecycles/ On Dec 1, 8:54 pm, Dan Sharp [EMAIL PROTECTED] wrote: Dusty, That may very well be it. I thought it was a longer list, but maybe I'm just remembering the two lists (new vs.

[Rails] Re: Rails on shared hosting

2008-12-02 Thread Bobnation
I've heard good things about Slicehost, http://www.slicehost.com/, and have been thinking about hosting any actual applications there if they ever get too big for my tiny Atom server I am currently running from my apartment's server shelf. On Dec 2, 6:45 am, Joshua Partogi [EMAIL PROTECTED]

[Rails] Re: Getting IP address through Ruby On Rails

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 13:55, hema gonaboina wrote: Hi, Can Anyone tell me how to get the IP address of the system through rails application? The system's IP on which the application running Well request.host tells you the host (which isn't quite the same thing). Obviously you can

[Rails] Re: Can I export db data to fixtures?

2008-12-02 Thread Bobnation
I'm curious as to what you are using this for. On Dec 2, 1:00 am, Arthur Chan [EMAIL PROTECTED] wrote: Brian Hogan wrote: Yeah there are a few plugins to do that. There's one called ar_fixtures that should work just fine.  I don't know if it's supported any more but I know it still works

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Dave Smith
Frederick Cheung wrote: On 2 Dec 2008, at 13:26, Dave Smith wrote: Fred button_to :send_mail, :id = some_template.id, :mailing_list_id = end mailings (database table shown below). @mail_template = MailTemplate.find(params[:id]) @mailing_list =

[Rails] A question about link_to tag

2008-12-02 Thread Zhao Yi
Please see this code: %= link_to 'New info', new_info_path % I wander what new_info_path means? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 11:27, Dave Smith wrote: Frederick Cheung wrote: On 2 Dec 2008, at 10:48, Dave Smith wrote: many relationship). ? Fred yeah well in my mailinglist controller I have put @mailinglist_mailings = @mailinglist.mailings.collect so essentially very similar so does

[Rails] ActiveResource - xml and json format return different results

2008-12-02 Thread szimek
Hi, I'm using Rails 2.1.2. and I wanted to switch ActiveResource format to JSON and thought that it will work smoothly, but unfortunately it wasn't the case. XML and JSON formats generate different objects: XML version #User:0xb7658440 @prefix_options={}, @attributes={created_at=Mon Nov 28

[Rails] Re: Problem with extend rails(add new function in lib)

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 10:13, hei wrote: Thanks! class Translater require rubygems require rmmseg include RMMSeg RMMSeg::Config.max_word_length = 7 RMMSeg::Config.algorithm = :complex RMMSeg::Config.dictionaries = [[dict/chars.dic, true],

[Rails] Re: Problem with extend rails(add new function in lib)

2008-12-02 Thread Frederick Cheung
On Dec 2, 5:59 am, hei [EMAIL PROTECTED] wrote: Can anyone help me ~~ What's the run method in translater? ALso it looks like this isn't the exact code that is running - for example include RMMSeg is almost certainly include RMMSeg; it's very hard to say anything about code when it has been

[Rails] to het element's height and width

2008-12-02 Thread Newb Newb
Hi... i m trying to give my form opacity effect with external javascript. In that i want to get div element's height and width. My div width is fixed like 500px. Height is not fixed one. According to the content it ill be resized. so i used like below var dimensions = element.getDimensions(); so

[Rails] Re: New to Rails... Help!

2008-12-02 Thread Sazima
Jay, You're confusing Rails with InstantRails. Rails is the web framework, Instant Rails is a package containing Rails + web server + DB, etc. Google for Rails books, there are also plenty of suggestions in other topics in this group. Finally, if you have the time, I would start by 1st learning

[Rails] Re: ActiveResource - xml and json format return different results

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 14:52, szimek wrote: Hi, I'm using Rails 2.1.2. and I wanted to switch ActiveResource format to JSON and thought that it will work smoothly, but unfortunately it wasn't the case. XML and JSON formats generate different objects: XML version #User:0xb7658440

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 10:48, Dave Smith wrote: Dave Smith wrote: Frederick Cheung wrote: On 1 Dec 2008, at 16:58, Dave Smith wrote: recipient, subject, message to the emailer model. However I created a mailings scaffold which holds each of the email addresses, and names for the people on

[Rails] Re: What you think about Ruby Jobs?

2008-12-02 Thread Edson Lopes
No one? On Sun, Nov 30, 2008 at 4:42 PM, Edson Lopes [EMAIL PROTECTED] wrote: Hello everyone, I'm from Brazil, and I'm looking forward to lean a new language to work with. Ruby is my choice! :-D What is the salary average for Ruby programmers? (rookie, normal, expert) Ho pays the best

[Rails] Re: Rails on shared hosting

2008-12-02 Thread John Yerhot
I can second the recommendation for slicehost. The best 'shared' Rails host I've experienced is http://www.ocssolutions.com/. On Dec 2, 8:18 am, Bobnation [EMAIL PROTECTED] wrote: I've heard good things about Slicehost,http://www.slicehost.com/, and have been thinking about hosting any actual

[Rails] Re: Sending mail templates to a mailinglist

2008-12-02 Thread Dave Smith
Dave Smith wrote: Frederick Cheung wrote: On 1 Dec 2008, at 16:58, Dave Smith wrote: recipient, subject, message to the emailer model. However I created a mailings scaffold which holds each of the email addresses, and names for the people on the mailinglist (with a one to many

[Rails] Re: form_for with partial using do |@f|

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 02:03, Richard Schneeman wrote: Is it possible to pass this FormBuilder object to a controller and then back to a partial? What you are doing can't work. You can't pass arbitrary ruby objects as params to a url. Fred I have a form rendering a partial that i would

[Rails] Problem with foreign key

2008-12-02 Thread Ali Fakheri
Hello I've a User model. A user, belongs to a state model. I've the following in the user form: [code] %= f.select(:state_id, State.find(:all).map {|c| [c.name, c.id]},{:prompt = Select a canton}, {:onchange = #{remote_function(:url = {:action = update_municipals},

[Rails] Mongrel's memory usage

2008-12-02 Thread Max Williams
We've got a problem with a memory leak (we think) on our site. We've got monit running, which has helped the problem a lot by restarting mongrels when they get too bloated. But, this is obviously just a temporary solution while we try to find out whats really causing it. I'm looking at mongrel

[Rails] Re: Rails on shared hosting

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 15:18, John Yerhot wrote: I can second the recommendation for slicehost. The best 'shared' Rails host I've experienced is http://www.ocssolutions.com/ . slicehost have been good to me too, as have linode (although I've never had anything more critical than my blog and

[Rails] Re: Problem with extend rails(add new function in lib)

2008-12-02 Thread hei
Thanks! class Translater require rubygems require rmmseg include RMMSeg RMMSeg::Config.max_word_length = 7 RMMSeg::Config.algorithm = :complex RMMSeg::Config.dictionaries = [[dict/chars.dic, true], [dict/words.dic, false],

[Rails] Re: MySQL Adapter on Rails 2.2

2008-12-02 Thread Frederick Cheung
On Dec 2, 12:50 pm, Joshua Partogi [EMAIL PROTECTED] wrote: Hi all, I've been searching through the list about configuring MySQL adapter on Rails 2.2, and it seems that this question is asked over and over again without any solution :-D Why did Rails 2.2 made configuring the mysql driver

[Rails] Re: Setting up Environment

2008-12-02 Thread keith74
Not sure what the issue might be. If you are looking for pre- packaged rails development environment for Windows you may want to try instant rails http://instantrails.rubyforge.org/wiki/wiki.pl On Nov 30, 12:14 pm, David Franklin [EMAIL PROTECTED] wrote: I'm new to ruby on rails and

[Rails] Re: Rails on shared hosting

2008-12-02 Thread Roderick van Domburg
Allow me to plug http://www.railscluster.nl (http://en.railscluster.nl for the English site), which is a fully clustered shared hosting solution. It's been designed especially for Rails hosting. -- Roderick van Domburg http://www.nedforce.com -- Posted via http://www.ruby-forum.com/.

[Rails] Re: To store the combo box id value from one table another table in database+rails

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 10:18, balaji rajagopal wrote: Hi Textbox coding in controller @resort_basic.resortname=params[:resortname]; is working well and i got the value... Combo box coding in controller 1.

[Rails] Re: Rails on shared hosting

2008-12-02 Thread Peter De Berdt
From what I have found, there's very little shared hosts out there (especially the cheap ones) that are framework friendly, whether that's RoR or CakePHP or ... There are some exceptions, but those are usually the hosts that charge a bit more to be able to give customers decent support.

[Rails] Re: To store the combo box id value from one table another table in database+rails

2008-12-02 Thread balaji rajagopal
Hi Textbox coding in controller @resort_basic.resortname=params[:resortname]; is working well and i got the value... Combo box coding in controller 1. @resort_basic.resortclass[resortclassid]=params[:resortclass]; got error in 1st code : undefined method `resortclass'

[Rails] Re: A question about link_to tag

2008-12-02 Thread Ryan Bigg
Read http://frozenplague.net/2008/01/restful-routing-an-overview/ for a brief overview, and http://guides.rails.info/routing_outside_in.html for a longer overview - Ryan Bigg Freelancer http://frozenplague.net On 02/12/2008, at 7:50 PM, Zhao Yi wrote: Please see this code: %=

[Rails] adding sound to Rails app

2008-12-02 Thread Bill Walton
I need to add some simple sounds to my latest app. Basically, 'beep' and 'burp'. Google hasn't been much help. I'd appreciate any recommendations. Thanks, Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Trying to get started

2008-12-02 Thread Scott Peterson
I'm having a lot of trouble getting going in InstantRails on Windows in a new development installation. I should mention that I've installed InstantRails 2.0 on this machine, and I'm using cygwin over windows for command-line stuff. The application was previously started elsewhere, which may

[Rails] Re: adding sound to Rails app

2008-12-02 Thread Jodi Showers
Bill - On 2-Dec-08, at 11:28 AM, Bill Walton wrote: I need to add some simple sounds to my latest app. Basically, 'beep' and 'burp'. Google hasn't been much help. I'd appreciate any recommendations. Thanks, Bill as this is a client capability the answer will be found in a java ref:

[Rails] Re: adding sound to Rails app

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 16:50, Jodi Showers wrote: Bill - On 2-Dec-08, at 11:28 AM, Bill Walton wrote: I need to add some simple sounds to my latest app. Basically, 'beep' and 'burp'. Google hasn't been much help. I'd appreciate any recommendations. Thanks, Bill scriptaculous also

[Rails] Re: Trying to get started

2008-12-02 Thread Scott Peterson
As always, it's the dumb things. I need to do the updtes from a windows command prompt, not from the cygwin interface which lays over windows. Still not running, but getting different ideas of what to install. Maybe at some point I'll get it going. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Trying to get started

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 16:46, Scott Peterson wrote: I'm having a lot of trouble getting going in InstantRails on Windows in a new development installation. I should mention that I've installed InstantRails 2.0 on this machine, and I'm using cygwin over windows for command-line stuff. The

[Rails] Accessing Web service methods in Rails 2.x

2008-12-02 Thread [EMAIL PROTECTED]
Hi I'm new to ROR. I have to access web service methods for the app i'm working on now. I tried creating a web service to get a feel of it using actionwebservice. I installed the gem but I don't think my rails installation recognises it. (Error: no such file to load -- actionwebservice) Anyone

[Rails] Sharing a partial between multiple controllers

2008-12-02 Thread Corey Murphy
I want to share a partial between 2 or more controllers. I have a location partial that I want users to enter Address, City, State, Zip information in however I have Payees, Institution, and Event models that can have location information stored with them. Since I don't want to duplicate the

[Rails] Re: Trying to get started

2008-12-02 Thread Scott Peterson
Frederick Cheung wrote: What is now known as classic pagination was removed in between rails 1.2.x and rails 2.0 Ah, thanks Fred. That explains it. Hopefully I can get my environment set up to working again, then just start re-generating my application and take off from there. -- Posted

[Rails] Re: Sharing a partial between multiple controllers

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 17:24, Corey Murphy wrote: I want to share a partial between 2 or more controllers. I have a location partial that I want users to enter Address, City, State, Zip information in however I have Payees, Institution, and Event models that can have location information

[Rails] Rails: database connection

2008-12-02 Thread Srilatha Bhuvanapalli
I have been using rails to talk to MySQL. I followed the below tutorial and I have been getting erros on using rake db:migrate. Could some let me know how to resolve it. Tutorial: http://blog.lawrencepit.com/2008/07/19/sproutcore-rails/ Error: srilatha-bhuvanapallis-macbook-pro:contacts Latha$

[Rails] Re: Accessing Web service methods in Rails 2.x

2008-12-02 Thread explainer
The book Enterprise Recipes with Ruby and Rails has several recipes for hooking up to a web service. Get it at http://pragprog.com. On Dec 2, 8:51 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I'm new to ROR. I have to access web service methods for the app i'm working on now. I tried

[Rails] Re: Rails: database connection

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 17:35, Srilatha Bhuvanapalli wrote: I have been using rails to talk to MySQL. I followed the below tutorial and I have been getting erros on using rake db:migrate. Could some let me know how to resolve it. Sounds like you're using a version of rails older than 2.0

[Rails] Re: Rails: database connection

2008-12-02 Thread Srilatha Bhuvanapalli
Frederick Cheung wrote: On 2 Dec 2008, at 17:35, Srilatha Bhuvanapalli wrote: I have been using rails to talk to MySQL. I followed the below tutorial and I have been getting erros on using rake db:migrate. Could some let me know how to resolve it. Sounds like you're using a version of

[Rails] Re: Rails: database connection

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 17:50, Srilatha Bhuvanapalli wrote: Frederick Cheung wrote: On 2 Dec 2008, at 17:35, Srilatha Bhuvanapalli wrote: I have been using rails to talk to MySQL. I followed the below tutorial and I have been getting erros on using rake db:migrate. Could some let me know

[Rails] Re: New to Rails... Help!

2008-12-02 Thread Jay Mark
Sazima, You are so right Sazima. I am confused like a beginner. Thanks for clearing that up for me. I have started learning Ruby. Thanks for all the suggestions guys. Jay. Sazima wrote: Jay, You're confusing Rails with InstantRails. Rails is the web framework, Instant Rails is a

[Rails] Re: Rails: database connection

2008-12-02 Thread Srilatha Bhuvanapalli
Frederick Cheung wrote: On 2 Dec 2008, at 17:50, Srilatha Bhuvanapalli wrote: Sounds like you're using a version of rails older than 2.0 Fred My version of rails is 2.1.2 srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rails -v Rails 2.1.2 but is that app set to use an old

[Rails] Re: Rails: database connection

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 18:04, Srilatha Bhuvanapalli wrote: Frederick Cheung wrote: On 2 Dec 2008, at 17:50, Srilatha Bhuvanapalli wrote: Sounds like you're using a version of rails older than 2.0 Fred My version of rails is 2.1.2 srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rails -v

[Rails] Rails and CSV Files

2008-12-02 Thread Ideale Ideale
Hi I'm programming in rails a web application which uses 4 CSV files prof.csv, student.csv et course.csv et subscriptions.csv a prof can give one or many courses, a student can subscribe to one or many courses etc ... I need to update the CSV files. for example : create, list, modify and

[Rails] Re: Rails: database connection

2008-12-02 Thread Srilatha Bhuvanapalli
Frederick Cheung wrote: On 2 Dec 2008, at 18:04, Srilatha Bhuvanapalli wrote: srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rails -v Rails 2.1.2 but is that app set to use an old version of rails (eg because it's frozen into vendor/rails or because RAILS_GEM_VERSION is set ) ? And

[Rails] Re: Rails: database connection

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 18:15, Srilatha Bhuvanapalli wrote: Frederick Cheung wrote: On 2 Dec 2008, at 18:04, Srilatha Bhuvanapalli wrote: srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rails -v Rails 2.1.2 but is that app set to use an old version of rails (eg because it's frozen into

[Rails] Re: Sharing a partial between multiple controllers

2008-12-02 Thread Corey Murphy
Frederick Cheung wrote: On 2 Dec 2008, at 17:24, Corey Murphy wrote: undefined method `text_field' for #Payee:0x4472530 Could you just call fields_for and pass through the yielded object instead of passing through @payee ? Fred How would I pass through the yielded object? I can't

[Rails] Re: Sharing a partial between multiple controllers

2008-12-02 Thread Frederick Cheung
On 2 Dec 2008, at 18:35, Corey Murphy wrote: Frederick Cheung wrote: On 2 Dec 2008, at 17:24, Corey Murphy wrote: undefined method `text_field' for #Payee:0x4472530 Could you just call fields_for and pass through the yielded object instead of passing through @payee ? Fred How would

[Rails] Re: Sharing a partial between multiple controllers

2008-12-02 Thread Corey Murphy
Frederick Cheung wrote: I was actually thinking of something along the lines for % fields_for @payee do |f| % %= render :partial= 'shared/location', :object = f % % end % I follow you now. A much simpler way of doing it and it solved my problem. Thanks once again Fred -- Posted via

[Rails] Rails Red5

2008-12-02 Thread Enzo Rivello
Hi there guys! I just was wondering if out there exists some plugin that would permit to rails to interact directly with the flash streaming server Red5 for purpose of video collaboration! I searched around the net and i didn't find anything, so i'm passing the question to the community! --

[Rails] Does a method string.to_class exist?

2008-12-02 Thread Richard Schneeman
I have A Definition model, is it possible to do something like this in Rails 2.1.0, Ruby 1.8.6 : foo = Definition @definition = foo.to_class.find(:all) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: mysql 2.7.3 gem install for Windows appears incomplete

2008-12-02 Thread Rick
Hello Matthew, So, was your mysql gem compiled during the install sequence? Is the creation date for mysql.so newer than for the other files? If that's a definite can't tell or just to be sure, uninstall the gem and reinstall with the --verbose flag. gem uninstall mysql --version=2.8 gem

[Rails] record to RTF linefeed problem.

2008-12-02 Thread Rudy
Hi, looks like a classic problem, but can't find a real solution anywhere. Im using the Ruby rtf plugin. I get a record from the DB with in there a large textfield, WITH linefeeds. (I can see them in de record in phpadmin.) when I export my recordfield to rtf, all the linefeeds/HR/CR 's are gone.

[Rails] Wich scraping tool ?

2008-12-02 Thread Remco Swoany
Hi, I want to develop a scraping tool. What is the best tool to use? scrubyt? hpricot? other? remco -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Generating ERB directly from RoR code

2008-12-02 Thread Frederick Cheung
On Dec 2, 8:03 pm, Kenneth McDonald [EMAIL PROTECTED] wrote: I have a situation where it would be useful to generate ERB directly   from Rails code, rather than taking it from a file. Is this possible?   If so, how would one go about it? Well there's render :inline if you're in a controller

[Rails] Re: Does a method string.to_class exist?

2008-12-02 Thread Frederick Cheung
On Dec 2, 8:31 pm, Richard Schneeman [EMAIL PROTECTED] s.net wrote: I have A Definition model, is it possible to do something like this in Rails 2.1.0, Ruby 1.8.6 : Have a look at constantize. Fred foo = Definition @definition = foo.to_class.find(:all) -- Posted

[Rails] Full text search using tsearch2

2008-12-02 Thread VP
Hi, I implemented a full text search using postgres 8.3. My performance is very good to index (using triggers/after_filter or crontab time based index update) and to search for something. With Postgres i can index only lexemes, other solutions, like sphinx based or aaf creates the index based

[Rails] Re: MySQL Adapter on Rails 2.2

2008-12-02 Thread Joshua Partogi
I was talking about the mysql ruby driver is not come bundled and installing it manually is not easy too. On Dec 3, 12:04 am, Frederick Cheung [EMAIL PROTECTED] wrote: On Dec 2, 12:50 pm, Joshua Partogi [EMAIL PROTECTED] wrote: Hi all, I've been searching through the list about

[Rails] Re: how ruby script/server work

2008-12-02 Thread Margareth Florián
Hi Fred.. Know the ruby code reload without restart the server but views do not. 2008/12/1 Frederick Cheung [EMAIL PROTECTED] On 1 Dec 2008, at 15:51, Margareth Florián wrote: Thanks for your answer Fred.. I am in development environment, I have config.cache_classes = false (in my

[Rails] Re: Trying to get started

2008-12-02 Thread Norm
Scott Peterson wrote: I'm having a lot of trouble getting going in InstantRails on Windows in a new development installation. I should mention that I've installed InstantRails 2.0 on this machine, and I'm using cygwin over windows for command-line stuff. The application was previously

[Rails] Re: Incompatible versioning of InstantRails?

2008-12-02 Thread Norm
Scott Peterson wrote: I'm trying to get InstantRails running on a different computer than I originally started and I've gotten stuck. I kind of think it's a versioning issue, but don't have a real good reason why I think that. Here's the deal. I'd started fooling around with Rails a while

[Rails] select boxes for country and state

2008-12-02 Thread Ali
Hello I've a user model which I would like to assign a state and municipal. Can some one tell me how should I do that? I tried Dynamic Select Boxes solution, but I couldn't get the expected solution. I also tried #88(railscast) Dynamic Select Menus, but the event is not triggered. Many

[Rails] Re: Trying to get started

2008-12-02 Thread Scott Peterson
Norm wrote: Scott Peterson wrote: Upon trying that, I get: Thank you. It sounds like your app was written using rails 1.2.x. I think you should try loading InstantRails 1.7 (which has that version of rails) and make sure you can run the app on that and then you can try to port the

[Rails] Re: to het element's height and width

2008-12-02 Thread Shandy Nantz
Newb Newb wrote: so i want to know how can i get height and width of div in IE7. element.getHeight() and element.getWidth()? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Trying to get started

2008-12-02 Thread Frederick Cheung
On Dec 2, 10:10 pm, Scott Peterson [EMAIL PROTECTED] wrote: Norm wrote: Scott Peterson wrote: Upon trying that, I get: Thank you. It sounds like your app was written using rails 1.2.x.  I think you should try loading InstantRails 1.7 (which has that version of rails) and make

[Rails] Re: Trying to get started

2008-12-02 Thread Norm
Scott Peterson wrote: Norm wrote: Scott Peterson wrote: Upon trying that, I get: Thank you. It sounds like your app was written using rails 1.2.x. I think you should try loading InstantRails 1.7 (which has that version of rails) and make sure you can run the app on

[Rails] Am I wrong or is fields_for not working right in Rails 2.2.2

2008-12-02 Thread Joshua Abbott
I may be totally wrong about what the fields_for method is supposed to do, but for some reason I thought using it scoped an object around an association. For example, I have a User class and when you're creating a new user I want to use fields_for to add a BillingAddress to the user like so: %-

[Rails] Re: Does a method string.to_class exist?

2008-12-02 Thread Richard Schneeman
As always, your advice worked like a charm!! Don't know how i missed that method the first time over...anywhoo thanks again! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Needs some help with eager loading issue on a has_many through relationship

2008-12-02 Thread hoenth
I have the following: 1. A model called Student, which is an STI sub-class of Person 2. Student has the following associations has_many :homerooms has_many :classrooms, :through = :homerooms has_one :current_classroom, :through = :homerooms, :source = :classroom,

[Rails] Re: Trying to get started

2008-12-02 Thread Scott Peterson
Frederick Cheung wrote: On Dec 2, 10:10?pm, Scott Peterson [EMAIL PROTECTED] wrote: IR installed (but not running) on you system without any problem. ?Just I changed database.yml to point to mysql and gave it my database's name, but I can't get the application to start from the

[Rails] Re: BOM Component

2008-12-02 Thread Justin
Nother yet... still waiting :( On Oct 15, 9:32 am, Erik [EMAIL PROTECTED] wrote: Did you ever get a reply? I'm curious to see what you come up with. On Sep 23, 3:18 pm, Justin [EMAIL PROTECTED] wrote: I've been using an excel spreadsheet to track our component bill of materials and would

[Rails] Re: Rails on shared hosting

2008-12-02 Thread Nellboy
All my experiences with slicehost have been positive... On Dec 2, 3:42 pm, Roderick van Domburg [EMAIL PROTECTED] s.net wrote: Allow me to plughttp://www.railscluster.nl(http://en.railscluster.nl for the English site), which is a fully clustered shared hosting solution. It's been designed

[Rails] Re: mysql 2.7.3 gem install for Windows appears incomplete

2008-12-02 Thread Rick
Hey Wes, Are you and Matthew Phillips the same person? Here's the answer that went to him to exactly the same email: So, was your mysql gem compiled during the install sequence? Is the creation date for mysql.so newer than for the other files? If that's a definite can't tell or just to be

[Rails] Re: adding sound to Rails app

2008-12-02 Thread Nellboy
sounds like you have to load the sound first to play it?... i'd be looking at the sequence of events from the time it's first triggered, and in what order the sound is loaded... the way i'd approach this would to call a function which first loads the correct sound and then plays it... def

[Rails] Re: Rails on shared hosting

2008-12-02 Thread elle
Have been using railsplayground.com and love their support team... Upgraded recently to a reseller account and will probably upgrade one day to a VPS On Dec 3, 11:30 am, Nellboy [EMAIL PROTECTED] wrote: All my experiences with slicehost have been positive... On Dec 2, 3:42 pm, Roderick van

[Rails] Re: mysql 2.7.3 gem install for Windows appears incomplete

2008-12-02 Thread Wes Gamble
Rick wrote: I'm under the assumption that the mysql gem for Windows is precompiled, like all of the other gems for Windows (generally speaking), so there isn't really a compilation step. Here's the output from the --verbose run. I notice that it can't find the H:\gem install mysql

[Rails] Re: Trying to get started

2008-12-02 Thread Norm
Scott Peterson wrote: BTW, Norm, I tried your idea as well, but the rails console window shuts down as soon as it starts. You can get the same thing by bringing up a window running cmd. cd to wherever IR is and run use_ruby.cmd It will set up the paths and cd to rails_apps. You can

[Rails] Authenticity Token change under 2.2.2?

2008-12-02 Thread Simon Macneall
Hi, We have the following code which sends a request on unload of one of our pages. It was working fine until I upgraded to rails 2.2.2, but now is giving 'ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):' Does anyone know what has changed, and what

[Rails] validates acceptance of question

2008-12-02 Thread [EMAIL PROTECTED]
I have a terms of service agreement attached to a checkbox. It seems to work ok and I see agreement=0 when the box is not checked in the development log and agreement=1 when the box is checked in the log. But in the model I this validation: validates_acceptance_of :agreement,

[Rails] Need Help: Deployment Issues with Voting App?

2008-12-02 Thread Leximo
I have an app that allows users to submit words. In development, users can submit words, which are then voted on. Each user can only vote once. This works fine in development. However, when I deploy to my production server, users cannot seem to vote. They click vote, and nothing happens. This

[Rails] Re: Trying to get started

2008-12-02 Thread Scott Peterson
Norm wrote: Scott Peterson wrote: BTW, Norm, I tried your idea as well, but the rails console window shuts down as soon as it starts. You can get the same thing by bringing up a window running cmd. cd to wherever IR is and run use_ruby.cmd It will set up the paths and cd to

[Rails] Best way to add custom onclick handler to select options

2008-12-02 Thread Wes Gamble
All, I want to make an individual option in a select act as an in-place edit field. I get how the in_place_editor works, and it appears if I simply place a tag around the option of interest, and then mark this tag as the edit-in-place target, I should be good. The trick is how do I easily

[Rails] Retitled: Best way to customize option tags in Rails

2008-12-02 Thread Wes Gamble
All, (sorry, I mis-titled this post as Best way to add custom onclick handler to select options and posted it before I could fix the title). I want to make an individual option in a select act as an in-place edit field. I get how the in_place_editor works, and it appears if I simply place a

  1   2   >