Sha256: 5abe8a9ab1119318ca526ae505494294607cf949948b82d5e3602e1ccaced6d7
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
<% for attribute in attributes -%> <%%= f.cms_<%= case attribute.type when :attachment "file_field :#{attribute.name}_file, :label => \"File\"" when :category "drop_down :category_id, categories_for('#{class_name.titleize}').map{|c| [c.path, c.id]}" when :date, :datetime "date_picker :#{attribute.name}" when :html "text_editor :#{attribute.name}" else "#{attribute.field_type} :#{attribute.name}" end -%> %> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nate-browsercms-3.0.210 | rails_generators/content_block/templates/_form.html.erb |
nate-browsercms-3.0.211 | rails_generators/content_block/templates/_form.html.erb |