When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I cannot save a record:> rails consoleLoading 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/rails/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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Have the exact same problem - doesn''t matter 1.8.7, 1.9.1 or 1.9.2. Interestingly, in the console, invoke g.save a second time and it works. All subsequent AR calls seem fine after that. I ran into the problem when attempting to seed (create). You at RailsConf by the way? (I am @wischr). On Jun 9, 11:41 pm, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, Jun 10, 2010 at 10:42 AM, wischr <cwise-QTTHg6PQoI3GL5emXfDNdJqQE7yCjDx5@public.gmane.org> wrote:> Have the exact same problem - doesn''t matter 1.8.7, 1.9.1 or 1.9.2. > Interestingly, in the console, invoke g.save a second time and it > works. All subsequent AR calls seem fine after that. I ran into the > problem when attempting to seed (create). You at RailsConf by the way? > (I am @wischr).Mine does work on 1.8.7. I am at RailsConf. Good times :) I''m @gdonald. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I just tried 1.8.7 - still fails for me (consistently). I am headed over to the AR presentation, so I might ask if it''s a known issue in the Q&A. On Jun 10, 11:15 am, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Jun 10, 2010 at 10:42 AM, wischr <cw...-QTTHg6PQoI3GL5emXfDNdJqQE7yCjDx5@public.gmane.org> wrote: > > Have the exact same problem - doesn''t matter 1.8.7, 1.9.1 or 1.9.2. > > Interestingly, in the console, invoke g.save a second time and it > > works. All subsequent AR calls seem fine after that. I ran into the > > problem when attempting to seed (create). You at RailsConf by the way? > > (I am @wischr). > > Mine does work on 1.8.7. > > I am at RailsConf. Good times :) I''m @gdonald. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I got the same error in my model, because of validations: if "validates_presence_of :login, :full_name, :email, :password" is before "validates_uniqueness_of :login, :email", then error is raised if "validates_presence_of :login, :full_name, :email, :password" is after "validates_uniqueness_of :login, :email", then error is not raised i didnt check why this is like that, but maybe this will help solve something. And in this way you can save models at least and continue work. I use mysql-5.1, ruby => ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32], gem => ruby-mysql-2.9.3 on windows 7 On Jun 10, 6:07 pm, wischr <cw...-QTTHg6PQoI3GL5emXfDNdJqQE7yCjDx5@public.gmane.org> 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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <cw...-QTTHg6PQoI3GL5emXfDNdJqQE7yCjDx5@public.gmane.org> 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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Jun 13, 2010 at 3:13 AM, ingus.skaistkalns <ingus.skaistkalns-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.I''m not even to the point of adding any validations, can''t even fire up rails console with empty models yet. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
According to http://guides.rails.info/3_0_release_notes.html, Ruby 1.9.1 is not usable wit Rails 3. On Jun 9, 8:41 pm, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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'':wrongargumenttypeSymbol(expectedProc) (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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jun 14, 2010 at 9:33 AM, nb <saltybanana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> According to http://guides.rails.info/3_0_release_notes.html, Ruby > 1.9.1 is not usable wit Rails 3.Yup.. notice the part where I then tried 1.9.2-head?>> 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'':wrongargumenttypeSymbol(expectedProc) (TypeError)Using rvm, I have since tried every available version of 1.9.2, none work. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.