<%= form.text_field :title, :id => (@gallery.new_record?? 'slugify' : nil)%> <%= form.text_field :identifier, :id => 'slug' %> <%= form.text_area :description%> <%= form.text_field :full_width %> <%= form.text_field :full_height %> <%= form.check_box :force_ratio_full, :label => "Force Ratio" %> <%= form.text_field :thumb_width %> <%= form.text_field :thumb_height %> <%= form.check_box :force_ratio_thumb, :label => "Force Ratio" %> <%= render :partial => 'cms_admin/categories/form', :object => form if defined?(ComfortableMexicanSofa) %> <%= form.submit 'Save' %>