Advertisement
Guest User

Activeadmin DSL change issue

a guest
Oct 30th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.48 KB | None | 0 0
  1. form do |f|
  2.   f.inputs do
  3.     f.has_many :items, :sortable => :position do |item|
  4.       item.inputs :class => "item_wrapper" do
  5.         item.inputs do
  6.           "<p>some static html</p>".html_safe
  7.         end
  8.         item.input :title, :input_html => {:class => 'item_title'}
  9.         item.input :blurb, :input_html => { :rows => 3, :class => 'item_blurb'}
  10.         item.inputs do
  11.           "<p>More static html</p>".html_safe
  12.         end
  13.       end
  14.     end
  15.   end
  16.   f.actions
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement