[Rails] Re: RoR IDE

2008-12-22 Thread BMorearty
I've tried Aptana/Eclipse and NetBeans. They're both good but I think NetBeans is significantly better. But make sure to set the -J-Xmx parameter to prevent it from using too much RAM. I set mine to -J- Xmx200m (200MB max). And I agree with the comment about Notepad++ for lightweight editing. It

[Rails] Re: rake aborted! undefined method `each' for #Mysql:

2008-12-22 Thread Mesut Çelik
kat...@gmail.com wrote: Gary, Good suggestion. I had the same problem with mysql 5.1, but the problem disappeared going back to 5.0. Although i was using 5.0 , that didnt disappeared in my environment... then i relaized that i was using 5.0.24 but mysql ruby gem (2.7.3) is supporting

[Rails] Re: rake aborted! undefined method `each' for #Mysql:

2008-12-22 Thread Mesut Çelik
Mesut Çelik wrote: you can check it here... I couldnt find anything regarding to Mysql 5.1 missing url : http://tmtm.org/mysql/ruby/README.html mesut www.zerobuffer.com Kaushik On Nov 30, 10:40�am, David Franklin rails-mailing-l...@andreas-s.net -- Posted via

[Rails] Re: MySpace.com clone using Ruby on Rails. Is it possible?

2008-12-22 Thread Lekvarnik Lekvarnik
thx for the links merrick -- 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

[Rails] Help creating and using database

2008-12-22 Thread John Smith
I have this problem. I have a Job table in my db, and each job has many steps (table Step). Is not possible to know how many steps a job has until it is created. So when I create a new job I have a problem: I can not have a step_id in my Job table, because it can be one step or more. What can I

[Rails] Re: Help creating and using database

2008-12-22 Thread Frederick Cheung
On Dec 22, 9:16 am, John Smith rails-mailing-l...@andreas-s.net wrote: I have this problem. I have a Job table in my db, and each job has many steps (table Step). Is not possible to know how many steps a job has until it is created. So when I create a new job I have a problem: I can not

[Rails] Re: Confused with naming conventions...

2008-12-22 Thread Heinz Strunk
Alright, thanks guys! A lot of editing is waiting for me now... -- 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

[Rails] Re: Legacy database: help needed

2008-12-22 Thread Mark Smits
Ryan Bigg wrote: qvvalup is not the same as qvvaluf, unless you're speaking a language I'm not recognising. Rails works best with english words and pluralization. Somewhere in your app you're referencing qvvaluf_path... probably a scaffold somewhere. Got a stack trace for us? - Ryan

[Rails] Re: Help creating and using database

2008-12-22 Thread John Smith
Thanks, I know. If I can create a job first I have no problem, but I can't do that. I want to be able to create a job and, at the same time, create as many steps as I want. I would use AJAX in order to create new step fields, but if I have not created a job I can have any relation between a

[Rails] Apache mongrel and IIS..hosting asp and rails on same server

2008-12-22 Thread Ank Ag
Hello, I am running ASP.NET on IIS and on the same server am running rails. I have started multiple instances of mongrel as service and apache does the load balancing. THE PROBLEM IS i want to run the ASP.NET website on IIS and at the same time run the rails website through apache mongrel

[Rails] Re: Installing sqlite3-ruby on windows not working

2008-12-22 Thread Nick Sardo
Having Cygwin installed or not isn't the problem. There isn't a binary for windows in the new sqlite3 gem, that is what's causing the problem. You'll need to install a prior version. Try this: gem install sqlite3-ruby -v=1.2.3 That should solve your problem. Oliver Robinson wrote: Have

[Rails] Re: Help creating and using database

2008-12-22 Thread anton effendi
HAii.. sorry my English is very bad I don't what you want... but I have idea why do u not use 3 model / 3 table? table job id table join_job_step job_id step_id table step id this is has_many_and_belongs_to (same), but Don't use has_many_and_belongs_to. Model: * job has_many

[Rails] Re: Help creating and using database

2008-12-22 Thread John Smith
Thanks a lot, but I think that does not solve my problem, because I need to create a job to make a relation between the job and it steps. With that, I can create steps without a job, but how can I make relation between these steps and the job. Should I have to take the last steps and make a

[Rails] Passing aariable from controller to a different view ????

2008-12-22 Thread Dave Smith
Hi Guys, I am still very new to this rails stuff so I'm looking for some help. I have a login controller which authenticates a person and redirects them to the projects page, here is a snippet of code. == if request.post?

[Rails] ror plugins - in_place_editing and acts_as-textiled - install error

2008-12-22 Thread suman gurung
Hello everyone, I was trying to install these in_place_editing and acts_as_textiled plugins in my rails application version 2.2.2, running on windows XP but i came across some problems when doing so. When i was trying to install in_place_editing, using the command ruby script/plugin install

[Rails] Re: Can duplicate back browser function in Rails?

2008-12-22 Thread Ken Wagner
Marnen Laibow-Koser wrote: ... (From Ken:) I find the Rails documentation frustrating because so much is left out. Left out? What do you mean? Do you have a concrete example? Then I spend hours testing, digging and reading. Maybe I am just thick-headed. Yes. Take form_tag. Even on

[Rails] Re: mysql.rb

2008-12-22 Thread Mesut Çelik
napster wrote: hi guys, my rails is 2.1.2,today I've installed Rails 2.2,and i have run into a few problems. message:no such file to load --mysql then i try to run gem install mysql and i get a new error message: 126: Cannot find mold train which assigns -

[Rails] Callback on update but not on destroy

2008-12-22 Thread jeroen
Hi, Does anyone know if there's a callback that gets called when a existing record gets updated but not when a record gets destroyed? After_update and before_update seem to also get called on destroy. I there is no such a callback can anybody suggest an alternative way of triggering a method

[Rails] Re: IMAP_Authenticatable Problem

2008-12-22 Thread Rob Biedenharn
On Dec 20, 2008, at 11:30 AM, Pete Bekisz wrote: Good morning all, I've been using the imap_authenticatable plugin for about a year now without incident. All of a sudden, I tried logging in this morning and this error is showing up in the logs. Does anyone have any idea what could be

[Rails] Re: Passing aariable from controller to a different view ????

2008-12-22 Thread Ryan Bigg
Use restful authentication (or a similar plugin) for tracking that kind of stuff: http://github.com/technoweenie/restful_authentication - Ryan Bigg Freelancer http://frozenplague.net On 22/12/2008, at 11:53 PM, Dave Smith wrote: Hi Guys, I am still very new to this rails stuff

[Rails] Re: Deploying Radiant - why can't anything ever just work?

2008-12-22 Thread Patrick Doyle
On Sun, Dec 21, 2008 at 10:03 PM, Ryan Ororie rails-mailing-l...@andreas-s.net wrote: So I have been tinkering with Rails all week - I'm a designer, not a developer, but I'm looking to expand my knowledge. I created an instance of Radiant, the cms, and am looking to fiddle with it and then

[Rails] Re: Accessing rails helpers when processing erb snippets

2008-12-22 Thread RichardOnRails
Thanks for the additional insight. I'll try to build an example for my own edification. Best wishes, Richard On Dec 21, 9:55 am, John Small rails-mailing-l...@andreas-s.net wrote: RichardOnRails wrote: Hi John, Congrats on figuring that out.  It sounds like a useful construct for a

[Rails] Re: Can duplicate back browser function in Rails?

2008-12-22 Thread Robert Walker
Ken Wagner wrote: Left out? What do you mean? Do you have a concrete example? Then I spend hours testing, digging and reading. Maybe I am just thick-headed. Yes. Take form_tag. Even on RailsBrain. Go to the top of the page. It doesn't tell you What and Why. What, exactly, is a

[Rails] Re: IMAP_Authenticatable Problem

2008-12-22 Thread Pete Bekisz
Hi Rob, Thanks for your answers. I switched the server from our authentication server over to our mail server and it seems to be running fine, so I'm assuming it's an issue with the way the auth server handles IMAP/POP authentication. Here's the code from the plugin: def

[Rails] Re: Thinking sphinx problem

2008-12-22 Thread tashfeen.ekram
anyone with ideas on this? On Dec 20, 12:50 pm, tashfeen.ekram tashfeen.ek...@gmail.com wrote: i forgot to mention that the log file is not being created and the permission on the file is to all. On Dec 20, 9:48 am, tashfeen.ekram tashfeen.ek...@gmail.com wrote: a beginner quesition.

[Rails] Re: IMAP_Authenticatable Problem

2008-12-22 Thread Rob Biedenharn
I'd say that a guard was needed on the disconnect call. On Dec 22, 2008, at 9:28 AM, Pete Bekisz wrote: Hi Rob, Thanks for your answers. I switched the server from our authentication server over to our mail server and it seems to be running fine, so I'm assuming it's an issue with the

[Rails] Re: render :json and associations

2008-12-22 Thread pbo...@gmail.com
I do have includes on the finder, but the associates are not sent with the json output. For now I wound up just building my own hash and returning that. On Dec 20, 1:55 pm, rp8 -_- rails-mailing-l...@andreas-s.net wrote: use eager loading on your @orders with :include option or use :select to

[Rails] Re: render :json and associations

2008-12-22 Thread Frederick Cheung
On Dec 22, 2:31 pm, pbo...@gmail.com pbo...@gmail.com wrote: This works, but what if I want to add other json object that aren't in orders?  Ext JS needs a count param for it's client side pagination.  So I originally had this: format.json { render :json = { :order = @orders, :count =

[Rails] Re: Can duplicate back browser function in Rails?

2008-12-22 Thread Hassan Schroeder
On Mon, Dec 22, 2008 at 6:22 AM, Robert Walker rails-mailing-l...@andreas-s.net wrote: This is a matter of prerequisite. The Rails documentation assumes you know HTML, CSS, JavaScript, etc. It does not attempt to teach HTML. If you don't know what an HTML tag is, then study documentation on

[Rails] Re: Help creating and using database

2008-12-22 Thread Harold
I think what you're looking for is the build method, something along the lines of @job.steps.build in your controller. Take a look at the complex form railscasts by Ryan Bates: http://railscasts.com/episodes/73-complex-forms-part-1 (go to parts 2 and 3 after you're done with part 1). On Dec

[Rails] Re: Gsub patern

2008-12-22 Thread Michael Libby
On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote: Hello, I am trying to apply a gsub! to a string. I want to know how to make the pattern evaluate that everything that IS NOT numbers, letters or commas should be replaced with (nil). Any ideas in how to do this pattern?

[Rails] Re: Gsub patern

2008-12-22 Thread Rob Biedenharn
On Dec 22, 2008, at 11:09 AM, elioncho wrote: Hello, I am trying to apply a gsub! to a string. I want to know how to make the pattern evaluate that everything that IS NOT numbers, letters or commas should be replaced with (nil). Any ideas in how to do this pattern? /[^[:alnum:],]/ [^ ] -

[Rails] Re: Gsub patern

2008-12-22 Thread NAYAK
Hi, You can use gsub(/[^0-9a-zA-Z,]/, '') to replace only non numbers, alphabets and , Regards, NAYAK On Mon, Dec 22, 2008 at 9:53 PM, Michael Libby michael.c.li...@gmail.comwrote: On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote: Hello, I am trying to apply a

[Rails] Re: Gsub patern

2008-12-22 Thread elioncho
Thanks a lot Michael, it worked perfectly. Thanks for the link too, it cleared some things up. Elías On Dec 22, 11:23 am, Michael Libby michael.c.li...@gmail.com wrote: On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote: Hello, I am trying to apply a gsub! to a string.

[Rails] Using session variables vs passing parameters via URL

2008-12-22 Thread Patrick Doyle
Hi, I have been tweaking my index view in order to narrow down the amount of data displayed. The obvious first step was to add will-paginate, but then I added a couple of select boxes to narrow things down a bit more based on categories. Somewhere in the midst of all of this I discovered the way

[Rails] Authentication Plugins

2008-12-22 Thread DAZ
Just wondering what people would recommend - restful_authentication, acts_as_authenticated ... or something else? cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Rails 2.2 sweeping error

2008-12-22 Thread AD
It appears we are seeing an error when we enable config.action_controller.perform_caching with our Rails 2.2 upgrade. My initial hunch is this is related to acts_as_audited plugin but not sure. has anyone encountered this error and have a fix ? Rails 2.2.2, Jruby 1.1.6, Tomcat 5.5.27 undefined

[Rails] Re: mySQL databases and Radiant...uggg

2008-12-22 Thread Ryan Ororie
Bryce Roney wrote: mysql grant all on radiant_cms_development.* to root@'%' identified by 'root'; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'radiant_cms_development' Does the user you are using to issue this command have appropriate permissions to GRANT

[Rails] Re: mySQL databases and Radiant...uggg

2008-12-22 Thread Hassan Schroeder
On Mon, Dec 22, 2008 at 9:55 AM, Ryan Ororie rails-mailing-l...@andreas-s.net wrote: mysql grant all on radiant_cms_development.* to root@'%' identified by 'root'; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'radiant_cms_development' Presumably... it's the admin

[Rails] Re: Authentication Plugins

2008-12-22 Thread Joshua Abbott
restful-authentication all the way. It's always worked for any project I've needed user auth for. -- Josh http://iammrjoshua.com DAZ wrote: Just wondering what people would recommend - restful_authentication, acts_as_authenticated ... or something else? cheers, DAZ -- Posted via

[Rails] undefined local variable or method `request'

2008-12-22 Thread Gi Ga
I have a model users.rb class Users ActiveRecord::Base def self.setdot(dot) end end In controller I call it: user = Users.new user = Users.setdot(sddf) I get error: undefined local variable or method `request'

[Rails] Re: ror plugins - in_place_editing and acts_as-textiled - install error

2008-12-22 Thread Mark Reginald James
suman gurung wrote: I was trying to install these in_place_editing and acts_as_textiled plugins in my rails application version 2.2.2, running on windows XP but i came across some problems when doing so. ... Has the plugins been moved to a different directory?? i believe these are fairly

[Rails] Re: Callback on update but not on destroy

2008-12-22 Thread Mark Reginald James
jeroen wrote: Does anyone know if there's a callback that gets called when a existing record gets updated but not when a record gets destroyed? After_update and before_update seem to also get called on destroy. I there is no such a callback can anybody suggest an alternative way of

[Rails] Re: Authentication Plugins

2008-12-22 Thread Casey Ellett
I second that. Casey On Mon, Dec 22, 2008 at 1:06 PM, Joshua Abbott rails-mailing-l...@andreas-s.net wrote: restful-authentication all the way. It's always worked for any project I've needed user auth for. -- Josh http://iammrjoshua.com DAZ wrote: Just wondering what people would

[Rails] ruby code for converting LibXML::XML object to JSON

2008-12-22 Thread Victor
Hi, Does anyone aware of ruby code, gem or plugin available to convert LibXML::XML object to JSON? Thanks in advance, Victor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] subselects and associations(:include)

2008-12-22 Thread Marcelo Barbudas
Hi. Is there a way to stop rails from tokenizing a mysql query? I have an association where I need to change :select to: :select = *, (select count(something_id) from second_table where second_table.something_id = main_table.id ) as count It works OK without loading associations, however I

[Rails] Re: undefined local variable or method `request'

2008-12-22 Thread Franz Strebel
On Mon, Dec 22, 2008 at 7:27 PM, Gi Ga rails-mailing-l...@andreas-s.net wrote: /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1833:in `method_missing' app/models/users.rb:5:in `setdot' Can you show the code for the setdot method?

[Rails] 'Access Denied' - unable to load schema into production DB

2008-12-22 Thread Eu Reka
I am currently stuck on how to proceed. This app is hosted on site5. mysql version 4.1 I believe. I posted this on their forums, and also on mysql forums. Is anyone able to confirm whether it's a rails issue or not, or mysql, or something with the web hosting server. I can't load my schema

[Rails] Running a rails project in another folder

2008-12-22 Thread Shockmeister
Hi all, I want to transfer a rails project (still under development) from my aptop to my pc. I copied the project folder into the ruby directory on my pc and ran it with mongrel (ran successfully). However, when I try to access the site through the browser, the pages won't display. What am I

[Rails] Re: Running a rails project in another folder

2008-12-22 Thread Maulin Pathare
I dont think you can just copy the application folder over. Try running the rails app_name command on your pc and then copy the app folder over and all other files that you may have changed (routes, db.yaml...etc) I have never done this myself, so let me know how it goes :) am I doing wrong?

[Rails] How do I use GDB to debug Litespeed Server?

2008-12-22 Thread Pål Bergström
How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven't a clue on how to proceed. I haven't used GDB before. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: rdiscount on windows

2008-12-22 Thread Fernando Perez
RDiscount works fantastically on Mac and GNU/Linux systems, you can find alternatives here: http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two-for-price-of-one John Butler wrote: Hi, I wonder if anyone can help. Im trying to get an application running on windows

[Rails] how to use set_primary_key?

2008-12-22 Thread Kenneth McDonald
We are trying to use set_primary_key to cause an existing rails db to use a different primary key. This works find for accessing existing data, but gives an error when we try to add a new record, as it seems to still be accessing the record by the default id field at that point. Are there

[Rails] Re: twitter gem not getting installed

2008-12-22 Thread SP
Hi, Unfortunately this isn't the right group to post this query, but since I see similar questions about Twitter4R were previously asked on this group I will give an answer and CC the Twitter4R-Users Google Group (twitter4r-users). This following blog post talks about his issues with install

[Rails] Cron scheduling for daemon gem

2008-12-22 Thread Mark Mr
Does anyone know how to do cron-like scheduling with the daemon gem? basically i need my script to execute every day at 4 a.m. Here's what the default files comes with while($running) do # Replace this with your code ActiveRecord::Base.logger.info This daemon is still running at

[Rails] Re: Running a rails project in another folder

2008-12-22 Thread Dejan Dimic
It is custom to copy the folder from one location to another and then adjust the database.yml if required and other dependent configuration settings. How do you verify that your application on pc using mongrel is running? What database are you using? What is the contents of application log file

[Rails] Re: Authentication Plugins

2008-12-22 Thread Marnen Laibow-Koser
On Dec 22, 1:06 pm, Joshua Abbott rails-mailing-l...@andreas-s.net wrote: restful-authentication all the way. It's always worked for any project I've needed user auth for. [...] That's what I use (although I've been meaning to patch it to use bcrypt). Best, -- Marnen Laibow-Koser

[Rails] Re: Gsub patern

2008-12-22 Thread Marnen Laibow-Koser
On Dec 22, 11:42 am, NAYAK nay...@gmail.com wrote: Hi, You can use gsub(/[^0-9a-zA-Z,]/, '') to replace only non numbers, alphabets and , That's not reliable if you're outside an English environment. :alnum: is a better solution. Regards, NAYAK Best, -- Marnen Laibow-Koser

[Rails] Re: how to use set_primary_key?

2008-12-22 Thread Dejan Dimic
I have used the set_primary_key with some 3rd party propriety databases with no issues you describe. Could you give us some more information (table structure and such) to be able to help you adequately. On Dec 22, 10:51 pm, Kenneth McDonald kenneth.m.mcdon...@sbcglobal.net wrote: We are

[Rails] Re: how to use set_primary_key?

2008-12-22 Thread Kenneth McDonald
I think the problem is likely that the old primary key in the database is still the id field that rails generates and uses by default, and we can't change that since (for the time being, our needs being modest) we're using sqlite. We want to use a field called rmr, basically an

[Rails] Re: How do I use GDB to debug Litespeed Server?

2008-12-22 Thread Frederick Cheung
On 22 Dec 2008, at 21:30, Pål Bergström wrote: How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven't a clue on how to proceed. I haven't used GDB before. Jamis Buck had an article about extracting ruby stack traces from a gdb session:

[Rails] Re: subselects and associations(:include)

2008-12-22 Thread Frederick Cheung
On 22 Dec 2008, at 19:07, Marcelo Barbudas wrote: Hi. Is there a way to stop rails from tokenizing a mysql query? I have an association where I need to change :select to: :select = *, (select count(something_id) from second_table where second_table.something_id = main_table.id ) as

[Rails] Re: Gsub patern

2008-12-22 Thread Michael Libby
On Mon, Dec 22, 2008 at 10:45 AM, elioncho elion...@gmail.com wrote: Thanks a lot Michael, it worked perfectly. Thanks for the link too, it cleared some things up. Elías I should mention this neat web site, too: http://www.rubular.com/ You can try out Ruby regular expressions right in

[Rails] Using both :include and :joins in find()

2008-12-22 Thread John Kopanas
I would like to do this: Greeter.find(:all, :select = DISTINCT user_id, :include = [:user], :joins = [:user], :order = users.nickname) But an error is always thrown, I either do the join so that I go order on the join table... which I have to do... or I do eager loading which helps out a lot

[Rails] Re: Cron scheduling for daemon gem

2008-12-22 Thread Dejan Dimic
If you need to perform some action at particular time then you should test is is a time to action. If time is right, do you thing. If not then sleep a while and then test it once again. You can have an initial sleeping interval and then you can adjust in correlation how far is the next running

[Rails] Re: dynamic drop down list submission problem

2008-12-22 Thread pepe
Hi Pra, Sorry, I have been (still am) busy. I'll try to give you an example ASAP but it might take me a little while. Hopefully soon. Pepe On Dec 20, 2:23 pm, Pra Ng rails-mailing-l...@andreas-s.net wrote: Pra Ng wrote: pepe wrote: I believe you are missing an input field for your updated

[Rails] Trouble installing mysql gem

2008-12-22 Thread Bryce Roney
Hello, I'm having trouble installing the mysql gem, here is the error I am getting: Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

[Rails] Populating associations

2008-12-22 Thread Simon Macneall
Hi all, I have a Message class which has_many Message_Users, Message_User is basically a join table with an attribute, and belongs_to a User. so it kinda looks like the following: Message has_many :message_users MessageUser belong_to :user User - lots of user stuff What I want to do, is

[Rails] Re: how to use the observe_field to get more than one field?

2008-12-22 Thread Hassan Schroeder
On Sun, Dec 21, 2008 at 11:58 PM, sreekanth. G gsirika...@gmail.com wrote: I have two selctdropdown boxes name like resolution and codecname. Now i am able to get the single field value either from resolution or codecformat select box. is there any way to get the two fields in to the

[Rails] Re: Help with nested models and fields_for

2008-12-22 Thread Mark Reginald James
Marnen Laibow-Koser wrote: Thanks for the suggestion. I tried the same test, and got interesting if disheartening results. When I had recipe[ingredient_lines][] [ingredient][name] as the only form field, I got the same results as you. But the moment I added

[Rails] Re: twitter gem not getting installed

2008-12-22 Thread Nilesh Kumar
Thanks for reply. On Tue, Dec 23, 2008 at 4:24 AM, Dejan Dimic dejan.di...@gmail.com wrote: This is a common problem on windows platform where development tools (compiler and linker) and libraries are not in the path. On Dec 22, 10:48 pm, SP mbbx6...@gmail.com wrote: Hi,

[Rails] Updating model with has_one association - do not want to update associated model

2008-12-22 Thread Josh
I have two classes: Article and Update. When I try to update an Article, it is NOT saving the instance, but is only saving the associated Update object (which is valid). class Article ActiveRecord::Base has_one :update, :as = :content, :dependent = :destroy end class Update

[Rails] Re: rake aborted! undefined method `each' for #Mysql:

2008-12-22 Thread James Masters
Gary Doades wrote: What version of MySQL is this? I have had similar problems with MySQL 5.1 and the mysql gem with ActiveRecord. Switching back to MySQL version 5.0.67 and re-installing the MySQL gem seemed a lot better. Rolling back to 5.0.67 also worked for me. Thanks! -- Posted via