[Rails] Re: [2.2.2]Migration failing because MySQL has no "each" method?

2009-03-09 Thread Robert Kosek
I forgot to mention that because of the "undefined method `each' for #" exception I cannot even use the command, "rake db:schema:load" because it fails on the first table with this command. I suspect there's a flaw in the version of my MySQL gem, but I'll be darned if I know what version to re

[Rails] [2.2.2]Migration failing because MySQL has no "each" method?

2009-03-09 Thread Robert Kosek
Hey all. I'm trying to do a simple migration, but the MySQL adapter keeps choking. This used to work before, and was just fine before my latest OS reformat. I've got libmysql.dll in Ruby's /bin directory, and most the other migrations work well. This migration dies on a "rename_column" call.

[Rails] Can't seem to map a route as GET for controller/search/term

2008-11-24 Thread Robert Kosek
Hi all, I'm making a search features for a record with a keywords field (keywords is a string right now), and my routing is having consistency troubles. What I desire is: > localhost:3000/controller/search/:keyword I would like this form to be obeyed for both form-submitted searches and the HTM

[Rails] Re: Custom form builder errors?

2008-11-21 Thread Robert Kosek
Robert Kosek wrote: > Is the tag an object, or the actual string output? Okay, here's what I found. ActiveView::Base.field_error_proc has two parameters, the HTML output followed by the actual object itself. Then, field_error_proc is called within a function within the InstanceTa

[Rails] Re: Custom form builder errors?

2008-11-21 Thread Robert Kosek
Frederick Cheung wrote: > You can set ActionView::Base.field_error_proc (take a look insider > active_record_helper to see what the default is.) > > Fred Thanks Fred, just what I needed! Is the tag an object, or the actual string output? -- Posted via http://www.ruby-forum.com/. --~--~--

[Rails] Custom form builder errors?

2008-11-21 Thread Robert Kosek
Hello all, I'm new to Ruby and Ruby on Rails, so please have patience with a newbie. I was looking at the HTML produced when there are form errors and realized why my layout keeps breaking. Every label and input with an error gets wrapped with a div tag! So, I've been looking at the source ...