In after_inactive_sign_up_path_for for method, I used to set some instance variables. Example
def after_inactive_sign_up_path_for(resource)
@email = resource.email
'/home/some_view.html'
end
And then, I could use te variable in the view
#home/some_view.html
<%= "Registered as #{@email}" %>
It worked fine in 2.0, but not in 2.1. Is this a bug, or is there another way to do that?
Do I need to provide more information or code?
I don't quite understand what you're trying to achieve here. This after_inactive_sign_up_path_for is supposed to be called for a redirect, where instance variables would never work because it's a completely different controller instance.
About `resource` being accessible, yes it should be in views from devise controllers, not everywhere. In other views you get helpers like current_user (considering :user is your scope).