[Rails] Re: Re: ActiveRecord not getting true value from checkbox

2010-11-23 Thread Blake Miller
Colin Law wrote in post #963375: > On 23 November 2010 16:56, Blake Miller wrote: > > Please remember to quote the previous message so one can follow the > thread > >> I think you're right...it's probably somewhere in the save code. > > Who? > >>

[Rails] Re: ActiveRecord not getting true value from checkbox

2010-11-23 Thread Blake Miller
I think you're right...it's probably somewhere in the save code. Problem is, the save method is buried in the Devise (gem) code, so have to figure out what's going on there :/. I've verified before and after the save method, the value is 1; however, the value in the raw sql insert query into t

[Rails] ActiveRecord not getting true value from checkbox

2010-11-23 Thread Blake Miller
is a TinyInt, is ALWAYS 0. I've tried it with true/false values instead, and no luck. Any ideas? Thanks, Blake Miller - www.syntacticsugr.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups &

[Rails] Re: rails "path_prefix" produces no correct verb route evaluation

2010-11-16 Thread Blake Miller
I can confirm this. Rails 2.3.6. Interestingly, it tries to run both create AND index. For example, in my app, it posts to the correct create action in the controller; however, I have global error rescuing via: rescue_from Exception, :with => :rescue_all_exceptions if RAILS_ENV == 'productio