This link has been bookmarked by 41 people . It was first bookmarked on 18 May 2006, by David Harrison.
-
17 Jan 09
-
21 Mar 08
-
01 Mar 08
Marcelo Pinheirouser login rouite for ruby on rails development
Tutorials Ruby rubyonrails programming rails plugins code development webdev webdesign tutorial howto authentication login
-
23 Dec 07
-
17 Oct 07
-
25 Jul 07
-
31 May 07
-
29 May 07
-
22 May 07
-
29 Apr 07
-
12 Apr 07
-
04 Jan 07
-
- ... protect only certain actions?
How do I …
before_filter :login_required, :only => [:secret, :finances]or the opposite
before_filter :login_required, :except => [:login, :signup]- ... restrict access to certain users? There are many approaches for user security. This ranges from name based lookup over token systems to full fledged ACLs (AccessControlListExample) or even ACL trees. Your security system should be unrelated to the login system and should live in your models. In my applications i usually use a token based system and add a method to my user models to query if a token is available. You can then test the logged in user by implementing your own authorize?(user) method. Here is an example:
def authorize?(user) user.role?('admin') end
-
-
02 Dec 06
-
09 Nov 06
-
27 Oct 06
-
10 Oct 06
-
20 Jul 06
-
06 Jun 06
-
18 May 06
-
17 May 06
-
25 Apr 06
-
21 Apr 06
-
05 Apr 06
Myles A Braithwaitegem install login_generator
programming authentication rubyonrails blog code dev development documentation generator howto libraries login plugin webdev webdesign web20 Web tutorial security ruby reference
-
01 Mar 06
-
28 Feb 06
-
30 Jan 06
-
22 Jan 06
-
23 Dec 05
Michael GilesRuby user authentication.
-
14 Nov 05
-
29 Sep 05
-
23 Sep 05
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.