Jose Hales-Garcia wrote:>
> I want to put the controllers and actions of my application in a table
> so I can make associations between actions a user takes and the
> controller and action that was involved.
>
> How can I populate a table during migration with the controllers and
> actions of my application?
>
> Jose
>
The LoginEngine has some code to do this, I also use that code which I describe
at the end of this
blog article, it is a method which populates a table with the actions...
check out
http://blog.wolfman.com/articles/2006/05/20/role-based-authentication-admin-page
look at the end for the code for the subtitle Automatically adding Rights, you
want the code
described their.
--
Jim Morris, http://blog.wolfman.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---