Forum: Ruby on Rails sorcery gem virtual fields problem

Posted by Roelof Wobben (roelof)
on 2012-11-11 18:51
(Received via mailing list)
Hello,

I have followed this tutorial :
https://github.com/NoamB/sorcery/wiki/Simple-Passw...
I  have to make this form :

# app/views/users/_form.html.erb
<div class="field">
   <%= f.label :password %><br />
   <%= f.password_field :password %>
</div>
<div class="field">
   <%= f.label :password_confirmation %><br />
   <%= f.password_field :password_confirmation %>
</div>
Where f is a sort of virtual field.
But when I run this I get a error message that the variable f is not 
known.

How can I solve this ?

Roelof
Posted by Norbert Melzer (Guest)
on 2012-11-11 19:43
(Received via mailing list)
Form_for/form_tag is missing.
Am 11.11.2012 18:50 schrieb "roelof" <rwobben@hotmail.com>:
Posted by Roelof Wobben (roelof)
on 2012-11-11 19:49
(Received via mailing list)
Oke, then there is a error in the tutorial.

Roelof

Op zondag 11 november 2012 19:43:14 UTC+1 schreef Norbert Melzer het
volgende:
Posted by Norbert Melzer (Guest)
on 2012-11-11 21:09
(Received via mailing list)
No, there ins Nov error in the Tutorial, it's just that the snippet you
posted is very early in that tutorial if you had completed it before 
asking
then you had found the complete Form in the partial.
:-)
 Am 11.11.2012 19:48 schrieb "roelof" <rwobben@hotmail.com>:
Posted by Roelof Wobben (roelof)
on 2012-11-11 21:56
(Received via mailing list)
I have completed that page.
I see two forms but they are not the same.

The first is this one :  # app/views/users/_form.html.erb
and the second one is this one : # 
app/views/user_sessions/_form.html.erb
Roelof



Op zondag 11 november 2012 21:09:06 UTC+1 schreef Norbert Melzer het
volgende:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.