ruby on rails - Devise Omniauth Error -


I have installed the developer and Omniauth (: twitter) and now I am getting an error which states

  logic error / user / sign_up can not be zero or empty in the first argument in the form   

devise / new.html.erb

  & lt; H2 & gt; Sign up & lt; / H2 & gt; & Lt;% = simple_form_for (resource, like: source_name, url: registration_page (source_name)). F | & Gt%; & Lt;% = f.error_notification% & gt; & Lt; Div class = "form-inputs" & gt; & Lt;% = f.input: Email, Required: True, Autofocus: True% & gt; & Lt;% If f.object.password_required? & Gt%; & Lt;% = f.input: Password, Required: True% & gt; & Lt;% = f.input: password_confirmation, Required: true% & gt; & Lt;% end% & gt; & Lt; / Div & gt; & Lt; Div class = "form-action" & gt; & Lt;% = f.button: Submit, "Sign Up"% & gt; & Lt; / Div & gt; & Lt;% end% & gt; & Lt;% = Render "devise / share / link"%>   

on line 3

I used it for

  & lt;% = simple_form_ (User.new, as: user url : User_registration_path (user)) | F | & Gt%;   

^^ Now that work , but I know that it should not be done. So I'm not sure what this issue is with "resource acres", but I do not want to test this flip to flip this table :) No insight would be great!

Requested as the Admin Code

  Class OmniauthClallbackController & lt; Devise :: OmniauthClallbackController def all @user = User.from_omniauth (request.env ['omniauth.auth']) If @ user.persisted? Flash.notice = "Sign In!" Sign_in_and_redirect user's other session ['devise.user_attributes'] = @ user.dates redirect_to new_user_registration_path end and area _math: twitter, all end   

So, through a developer set up Gone from Anytime there was no revenue controller, they are controlled by the devise devised issues with this "resource" variable which I had placed above in bold. For some reason, this is throwing an error.

in the user.rb file < Pre> def self.from_omniauth (('Provider: auth.provider, uid: auth.uid) .first_or_create End DEF self.new_with_session (params, session) If session [' devise.user_attributes'] new session ([ Devise.user_attributes'], without security: true | user | user.attributes = params user.valid? And end super and end password_required? Super end; provider.blank? Enddef update_with_password (params, * option) if Encrypted_password.blank? Update_attributes (Parameters, * Options) and Super End & End

was finished in the wrong place: it still works properly

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -