ruby on rails - States that password_required? is an undefined method -


I have installed the Dyes and OmniAuth according to the rail. I understand that they are of little time, although it was all working till I tried to sign up now. W / o using my universal twitter feature

I get the error

  NoMethodError at / users / sign_up Exceptionist method `password_required? '  

In my user.rb

  1 def password_required? 2 super end; Provider.blank? 3 end   

I tried to transfer it to a userhalfer file. Not working

This is my ARB file

  1 < H2 & gt; Sign up & lt; / H2 & gt; 2 & lt;% = simple_form_for (resource, as: source_name, 3 url: registration_path (source_name)). F | & Gt%; 4 5 & lt;% = f.error_notification% & gt; 6 7 & lt; Div class = "form-inputs" & gt; 8 & lt;% = f.input: Email, Required: True, Autofocus: True% & gt; 9 & lt;% if password_required? & Gt%; 10 <% = f.input: Password, Required: True% & gt; 11 & lt;% = f.input: password_confirmation, Required: true% & gt; 12 & lt;% end% & gt; 13 & lt; / Div & gt; 14 14 & lt; Div class = "form-action" & gt; 16 & lt;% = f.button: Submit, "Sign Up"%> 17 & lt; / Div & gt; 18 & lt;% end% & gt;    

You should call this method by the resource example:

  & lt;% if resource.password_required? & Gt%;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -