Julio Benavides

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Hello, I'm new in rails and I facing this problem: After invite a new member the system generates an invitation link. This link invites to create an account, once the account is created the new member needs to confirm his email but if the member tries to login without confirm his email, he gets an

ActionController::UnknownFormat in Devise::SessionsController#new error:
Extracted source (around line #215):
213
214
215
216
217
218

    (options.delete(:responder) || self.class.responder).call(self, resources, options)
  else
    raise ActionController::UnknownFormat
  end
end

I tried several solutions I saw in internet like:
-Adding respond_to :json, :html to the ApplicationController.rb

-Replace:
form_for(resource, as: resource_name, url: user_registration_path(resource_name))
with:
form_for(resource, as: resource_name, url: user_registration_path)
in views/devise/sessions/new.html.rb.

No luck. Some help here will be very appreciated.

Thank you in advance.
Julio