Re: [Rails] Authorization and Routes
On Sun, Jul 15, 2012 at 1:36 PM, Jeff <jeff.r.gnome@gmail.com> wrote:
> with redirect_to, and could use that by wrapping it in some sort of global
> check_if_signed_in function that I could call at the top of various
> controller methods.
See: AbstractController::Callbacks::ClassMethods#before_filter
And it might help to look at the way existing gems implement auth;
see: https://www.ruby-toolbox.com/categories/rails_authentication
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home