Forum: Ruby on Rails restful_plugin with --stateful

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
57c6a3276ed9cbb3b271e5dd067f0724?d=identicon&s=25 Indu R Nair (indu)
on 2009-03-19 10:07
Hi everyone,
I am trying to implement the restful_authentication plug in with
--include-activation and --stateful  options. Installed the plug in
acts_as_sate_machine also. But when I am trying to save the user model I
get an error
 NoMethodError in UsersController#create

undefined method `to_sym' for #<State:0x668b52c>

RAILS_ROOT: E:/INSTAN~1/rails_apps/nanny_project
Application Trace | Framework Trace | Full Trace

E:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in
`method_missing'
E:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in
`send'
E:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in
`method_missing'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:146:in
`current_state'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:89:in
`next_states'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:89:in
`select'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:89:in
`next_states'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:93:in
`fire'
vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:201:in
`register!'
app/controllers/users_controller.rb:21:in `create'
What may be reason? do we need to write some thing extra for including
--stateful option with restful_authentication plugin. I am newbie in ROR
and using these for the first time. Please help.
This topic is locked and can not be replied to.