Sha256: f19a958344643e821a28c7b393356edf1ee4d878a78ff39cbef141ac4693796b
Contents?: true
Size: 362 Bytes
Versions: 21
Compression:
Stored size: 362 Bytes
Contents
<% type = "default" %> <% type = model.reflections[field.to_s].macro if model.reflections.has_key? field.to_s %> <% klass = field_setting(model, field, :class) %> <%= form.text_field field, :disabled => true, :class => klass %> <% if type.to_s == "belongs_to" %> <% field_name = "#{field.to_s.singularize}_id" %> <%= form.hidden_field field_name %> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems