devise sign_in_and_redirect code example
Example: devise redirectt after sign up
class RegistrationsController < Devise::RegistrationsController
protected
def after_sign_up_path_for(resource)
'/an/example/path' # Or :prefix_to_your_route
end
end