Displaying 3 results from an estimated 3 matches for "form_row".
Did you mean:
form_for
2007 Nov 18
2
Variable inside of another variable
Hi everyone,
I''m building partial and I need to use a variable inside of another
variable name:
I''ve tried like this:
<div class="form_row">
<label for="<%= field %>"><%= field_title || field.humanize %>:</
label>
<%= form.text_field field,
:size => User::field.upcase_SIZE,
:maxlength => User::field.upcase_MAX_LENGTH %>
<...
2008 May 04
5
simple Routing Error
...ot;/user/register" with {:method=>:get}
The URL is http://localhost:3000/user/register
Here is app/views/user/register.rhtml
<h2>Register</h2>
<% form_for :user do |form| %>
<fieldset>
<legend>Enter Your Details</legend>
<div class="form_row">
<label for="screen_name">Screen name:</label>
<%= form.text_field :screen_name %>
</div>
<div class="form_row">
<label for="email">Email:</label>
<%= form.text_field :email %>...
2010 Jan 29
0
Cucumber: fill_in does not take label
In a Cucumber step, the following line will fill in the screen_name
text box:
fill_in "user[screen_name]", :with => user.screen_name
but the following line will not
fill_in "Screen name:", :with => user.screen_name
Here is the text of the form:
<div class="form_row">
<label for="screen_name">Screen name:</label>
<input id="user_screen_name" maxlength="20" name="user[screen_name]"
size="20" type="text" />
</div>
Is this expected behavior? I would rather use the la...