Title / Description
Code = 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
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code