haml ???
Ruby
code posted
created at 13 Jul 01:55, updated at 28 Jul 22:14
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 |
= simple_form_for @page_layout, :html => {:multipart => true} do |f| =f.input :name =f.input :default =f.input :blocks =f.input :haml_template, :as => :file -if @page_layout.haml_template? .haml_template_code= File.open(@page_layout.haml_template.path, "rb").read =f.input :default_photo_style, :as => :select, :collection => Photo.new.image.styles.keys.map{ |key| [key.to_s.humanize, key] } =f.button :submit |
439 Bytes in 2 ms with coderay