Found that this error happens if validation validates_presence_of is not the last that is executed, if it is last, than no errors are happening.
On Jun 10, 6:07 pm, wischr <[email protected]> wrote: > I ran into the same problem but with 1.8.7, 1.9.1, 1.9.2. If you run > your save again, it will work the second time. I am trying to go down > the suggestions I just read of temporarily using ruby-mysql gem > instead. > > On Jun 9, 11:41 pm, Greg Donald <[email protected]> wrote: > > > When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I > > cannot save a record: > > > > rails console > > > Loading development environment (Rails 3.0.0.beta4) > > ruby-1.9.1-p378 > g = Game.new > > => #<Game id: nil, player_id: nil, versus_id: nil, finished: nil, > > created_at: nil, updated_at: nil> > > ruby-1.9.1-p378 > g.save > > NameError: undefined method `<=>' for class > > `ActiveSupport::Multibyte::Chars' > > > I found on someone's blog that exact error message and it said to use > > 1.9.2-head, know issue, etc. So with 1.9.2-head I can't even start > > rails console: > > > > rails console > > > /Users/destiney/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rai > > ls/engine.rb:122:in > > `delegate': wrong argument type Symbol (expected Proc) (TypeError) > > > Ruby 1.8.7 works fine as far as I can tell. > > > -- > > Greg Donald > > destiney.com | gregdonald.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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

