Displaying 1 result from an estimated 1 matches for "_max_length".
Did you mean:
max_length
2007 Nov 18
2
Variable inside of another variable
...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 %>
</div>
like this:
<div class="form_row">
<label for="<%= field %>"><%= field_title || field.humanize %>:</
label>
<%= form.text_field field,
:size => User::#{field.upcase}_SIZE,...