Hello,
I have read several pages but I cannot find how to make a form with this
field ;
div class=“field”>
Login naam:
Can anyone give me a hint ?
Roelof
Hello,
I have read several pages but I cannot find how to make a form with this
field ;
div class=“field”>
Login naam:
Can anyone give me a hint ?
Roelof
<%= form_for @user do |f| %>
<%= 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 Chapter 1: From zero to deploy | Ruby on Rails Tutorial | Learn Enough to Be Dangerous to get an idea of
creating a simple application with all the of the basic building blocks
explained.
On 14 July 2014 23:35, Eric S. [email protected] wrote:
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 Chapter 1: From zero to deploy | Ruby on Rails Tutorial | Learn Enough to Be Dangerous 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs