# Restful\_plugin with --stateful

**URL:** <https://www.ruby-forum.com/t/restful-plugin-with-stateful/163326>\
**Category:** Rails\
**Created:** [March 19, 2009, 10:07am UTC](https://www.ruby-forum.com/t/restful-plugin-with-stateful/163326 "2009-03-19T10:07:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://www.ruby-forum.com/u/indu)\
**Post date:** [March 19, 2009, 10:07am UTC](https://www.ruby-forum.com/t/restful-plugin-with-stateful/163326/1 "2009-03-19T10:07:25Z")

</div>

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.
