<%= 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. On Monday, July 14, 2014 1:34:08 PM UTC-6, Roelof Wobben wrote: > > Hello, > > I have read several pages but I cannot find how to make a form with this > field ; > > div class="field"> > <label for="Login naam ">Login naam:</label> > <input type="text" id="firstname" name="firstname" > value="" placeholder="login naam" class="login" /> > </div> <!-- /field --> > > Can anyone give me a hint ? > > Roelof > > -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/25bc86bb-0044-49d4-8d38-d52e61993f9e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.