Displaying 1 result from an estimated 1 matches for "upcase_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,...