On 14 July 2014 23:35, Eric Saupe <[email protected]> wrote:
> <%= form_for @user do |f| %>
>   <div class="field">
>     <%= f.label :login_naam %>:
>     <%= f.text_field :login_naam, class: "login", placeholder: "login naam"
> %><br />
>   </div>
>
>   <%= f.submit %>
> <% end %>
>
> You'll want to let Rails take care of the id's so they can match up the
> label with the field automatically as well as the name variable.
>
> Take a read through http://www.railstutorial.org/book to get an idea of
> creating a simple application with all the of the basic building blocks
> explained.

Even better would be to work right through the tutorial as I think I
have suggested already a couple of times.

In addition can I point out that it is good manners to come back when
you have solved a problem and post the solution for others that may
find your post later, also you could thank those that have tried to
help.  I have noticed on several occasions that you have not responded
after suggestions are made, but just move on to another problem the
next day.

Regards

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt8KHQSqYqtcCiixh3vKqGUNwFxdSqJvmkEDjiPm09Lew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to