Wednesday, August 18, 2010

[Rails] How to use restful_authentication for nested resources in Ra

I have a nested resource hotel_user and i wish to have
hotel_users_controller under hotel namespace.

I want to use restful authentication here and I want
hotel_users_controller, sessions_controller in hotel directory like
hotel/hotel_users_controller and hotel/sessions_controller. I tried with
the following command in terminal and it failed.

script/generate authenticated hotel_user hotel/session


and it failed with the error

The name 'AuthenticatedSystem' is either already used in your
application or reserved by Ruby on Rails.Please choose an alternative
and run this generator again.

The authenticated_system.rb file exists for some other resource under
lib directory and not for hotel_user. the generator is seeing it and
fails the generation of files. what can I do? please help
--
Posted via http://www.ruby-forum.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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate