Module: SimpleShowcaseAdmin::ItemsHelper
- Defined in:
- app/helpers/simple_showcase_admin/items_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_child_link(name, association) ⇒ Object
11 12 13 |
# File 'app/helpers/simple_showcase_admin/items_helper.rb', line 11 def add_child_link(name, association) link_to(name, "javascript:void(0)", :class => "add_child btn btn-mini", :"data-association" => association) end |
#new_child_fields_template(form_builder) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/simple_showcase_admin/items_helper.rb', line 3 def new_child_fields_template(form_builder) content_tag(:div, :id => "photos_fields_template", :style => "display: none") do form_builder.fields_for(:photos, Photo.new, :child_index => "new_photos") do |f| render(:partial => 'photos', :locals => { :f => f }) end end end |