RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: troelskn
To avoid having test:prepare run each time, you can further drop this into Rakefile:
test:prepare
Rakefile
Rake.application.instance_eval do # Remove test:prepare @tasks['test:benchmark'].prerequisites.shift @tasks['test:profile'].prerequisites.shift end
I needed this as well. I've managed to make it work (with Facebook anyway - but it should be trivial to support other providers as well). Code at: https://gist.github.com/troelskn/6240837
Note that this is for Rails 4.
If you are on Rails 4 and get a cryptic error message along the lines of ArgumentError in Devise::RegistrationsController#new wrong number of arguments (2 for 1), just remove the without_protection key in user.rb. Source: http://stackoverflow.com/questions/17105112/argumenterror-in-deviseregistrationscontrollernew-wrong-number-of-arguments
ArgumentError in Devise::RegistrationsController#new wrong number of arguments (2 for 1)
without_protection
user.rb
To avoid having
test:prepare
run each time, you can further drop this intoRakefile
:I needed this as well. I've managed to make it work (with Facebook anyway - but it should be trivial to support other providers as well). Code at: https://gist.github.com/troelskn/6240837
Note that this is for Rails 4.
If you are on Rails 4 and get a cryptic error message along the lines of
ArgumentError in Devise::RegistrationsController#new wrong number of arguments (2 for 1)
, just remove thewithout_protection
key inuser.rb
. Source: http://stackoverflow.com/questions/17105112/argumenterror-in-deviseregistrationscontrollernew-wrong-number-of-arguments