Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Troels Knak-Nielsen's Profile

GitHub User: troelskn

Comments by Troels Knak-Nielsen

Avatar

To avoid having test:prepare run each time, you can further drop this into Rakefile:

ruby
Rake.application.instance_eval do
  # Remove test:prepare
  @tasks['test:benchmark'].prerequisites.shift
  @tasks['test:profile'].prerequisites.shift
end
Avatar

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.

Avatar

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