RailsCasts Pro episodes are now free!

Learn more or hide this

petergill's Profile

GitHub User: petergill

Comments by

Avatar

Sorry for double post, but that's obviously:

ruby
user = User.new
user.apply_omniauth(omniauth)

in the authentications controller, not registrations

Avatar

I'm getting:

undefined method 'apply_omniauth' for #<User:0x007f84ec10b940>

when calling:

ruby
user.new
user.apply_omniauth(omniauth)

in the registrations controller.

Is there a better way of doing this via the methods in Ryans later episode? http://railscasts.com/episodes/235-devise-and-omniauth-revised

Avatar

I had a problem using fragment caching when calling the partial in response to javascript i.e. in index.js.erb and using <%= j render @collection %>

I was getting a response, but the javascript to append the response to the page just didn't fire