Plugins - Simply Rich Authenticator

StarAdd to favorites

This is a Ruby on Rails application. It has the following features:

1) Login 2) Logout 3) Forgot Password 4) Reset Password

It uses Rails 2.0.

Bala Paranj

http://www.rubyplus.org

http://simply-rich-authenticator.googlecode.com/svn/trunk

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment
serchan 11 Feb 2008
I was able to find the source of some of the errors/failures I experienced after loading this plugin, and suggest the below changes: 1. in test/test_helper.rb, include: include AuthenticatedTestHelper 2. in test/unit/user_test.rb, include first_name and last_name sample data, e.g.: def create_user(options = {}) User.create({ :login => 'quire', :first_name => 'quirefirst', :last_name => 'quirelast', :email => 'quire@example.com', :password => 'quire', :password_confirmation => 'quire' }.merge(options)) end 3. in config/environments/test.rb (and development.rb) include: SITE = "http://localhost:3000" 4. in test/functional/sessions_controller_test.rb, replace :user with :user_id: def test_should_login_and_redirect post :create, :login => 'quentin', :password => 'test' assert session[:user_id] assert_response :redirect end I also removed the products scaffolding generated pages and the contact us pages. There are a few more errors that I have not yet found the answers to, (if anyone has any suggestions): 1) Failure: test_should_not_rehash_password(UserTest) [./test/unit/user_test.rb:49]: <#<User id: 1, login: "quentin2", email: "quentin@example.com", remember_token: nil, first_name: nil, last_name: nil, crypted_password: "00742970dc9e6319f8019fd54864d3ea740f04b1", password_reset_code: nil, salt: "7e3041ebc2fc05a40c60028e2c4901a81035d3cd", activation_code: "8f24789ae988411ccf33ab0c30fe9106fab32e9b", remember_token_expires_at: nil, activated_at: "2008-02-06 18:18:34", deleted_at: nil, state: "active", created_at: "2008-02-06 18:18:34", updated_at: "2008-02-11 18:18:34">> expected but was <nil>. 2) Failure: test_should_reset_password(UserTest) [./test/unit/user_test.rb:44]: <#<User id: 1, login: "quentin", email: "quentin@example.com", remember_token: nil, first_name: nil, last_name: nil, crypted_password: "00742970dc9e6319f8019fd54864d3ea740f04b1", password_reset_code: nil, salt: "7e3041ebc2fc05a40c60028e2c4901a81035d3cd", activation_code: "8f24789ae988411ccf33ab0c30fe9106fab32e9b", remember_token_expires_at: nil, activated_at: "2008-02-06 18:18:34", deleted_at: nil, state: "active", created_at: "2008-02-06 18:18:34", updated_at: "2008-02-11 18:18:34">> expected but was <nil>. 1) Failure: test_should_allow_signup(UsersControllerTest) [./test/functional/users_controller_test.rb:20:in `test_should_allow_signup' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/test/unit/assertions.rb:39:in `assert_difference' ./test/functional/users_controller_test.rb:18:in `test_should_allow_signup']: Expected response to be a <:redirect>, but was <200>
serchan 8 Feb 2008

Thank you for the great plugin and fabulous free screencasts. Screencast #20 was particularly useful.

http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html

I was wondering two things:

  1. is there a reason why you included the products scaffolding and contact us functionality in this plugin? Are there any associations that we should be aware of if we remove this functionality?

  2. do you have any suggestions for implementing testing specific to this plugin? I found the plugin to work smoothly, but I have been unable to reconcile the existing tests.

Once again, thank you for the great plugin and screencasts, they have been essential to my building a strong foundation in Rails, and especially for navigating REST and 2.0.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?