Displaying 1 result from an estimated 1 matches for "text_field_row".
Did you mean:
text_field_for
2007 Nov 18
2
Variable inside of another variable
....text_field field,
:size => User::{field.upcase}_SIZE,
:maxlength => User::{field.upcase}_MAX_LENGTH
%>
</div>
To help you understand what I want:
I will call the partial on my view using this code:
<% render :partial => "text_field_row", :field => "email", :locals =>
{ :form => form } %>
and what I want to be displayed in this case is:
<div class="form_row">
<label for="email">Email:</label>
<%= form.text_field :email,
:size =&...