Created
August 25, 2011 11:26
-
-
Save ainame/1170464 to your computer and use it in GitHub Desktop.
Slimでmixi日記っぽい構成のフォーム
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== form_tag '/submit', :id => 'entry' do | |
== field_set_tag do | |
.fields | |
== label_tag :title, :class => 'diary-title' | |
== text_field_tag :title, :name => 'title', :size => "40" | |
.fields | |
== label_tag :body, :class => 'diary-body' | |
== text_area_tag :body, :rows => "30", :cols => "50" | |
== hidden_field_tag :name => 'photo1' | |
== hidden_field_tag :name => 'photo2' | |
== hidden_field_tag :name => 'photo3' | |
.fields | |
== submit_tag "プレビュー", :class => "preview" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment