Flexible authentication solution for Rails with Warden
josevalim
5 February, 2010
View Website
RubyGems Page
Rails 3.0✗
Thread Safety?
JRuby✓
Ruby 1.9✓
Rails 3.1?
A newer version (2.1.0.rc2) is available for this plugin
Is it working for you?
Installed both warden and devise via Gemfile and using builder. Then tried to start rails server and server fails to start.
Ok, I have managed to install both Warden and Devise on Rails 3; however, the server fails to start if I include:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
in the config/development.rb file. I receive the following error.
/.rvm/gems/ruby-1.9.1-p378/gems/actionmailer-3.0.0.beta/lib/action_mailer/deprecated_api.rb:72:in `method_missing': undefined method `default_url_options=' for ActionMailer::Base:Class (NoMethodError)
So, as per an idea I found on the net, I included a config/initializers/mailer.rb file in my project with the following line of code:
ActionMailer::Base.default_url_options[:host] = "localhost:3000"
Now when I tried to create a User account, a confirmation email was sent.
So far this bit is working!
Cheers,
Daren
Leave a Comment
Not working
I'm pretty sure the authors are on top of what's going on, so no need to include details, but I'm hoping this will be up and running soon. And, thanks for your hard work on Rails 3.
Installed both warden and devise via Gemfile and using builder. Then tried to start rails server and server fails to start.
Ok, I have managed to install both Warden and Devise on Rails 3; however, the server fails to start if I include:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
in the config/development.rb file. I receive the following error.
/.rvm/gems/ruby-1.9.1-p378/gems/actionmailer-3.0.0.beta/lib/action_mailer/deprecated_api.rb:72:in `method_missing': undefined method `default_url_options=' for ActionMailer::Base:Class (NoMethodError)
So, as per an idea I found on the net, I included a config/initializers/mailer.rb file in my project with the following line of code:
ActionMailer::Base.default_url_options[:host] = "localhost:3000"
Now when I tried to create a User account, a confirmation email was sent.
So far this bit is working!
Cheers,
Daren