概要
ラベルの利用
製造
View
%h1 Book#new %p Find me in app/views/book/new.html.haml %hr/ = link_to '戻る', :controller => 'book', :action => 'list' %hr/ - unless @messages.blank? %div - @messages.each do |m| %p =m %hr/ =form_tag("/book/create") do %p =label_tag 'name', 'BookName' =text_field_tag 'name', @book.name %p =label_tag 'isbn', 'ISBN-CODE' =text_field_tag 'isbn', @book.isbn %p =label_tag 'price', 'Price' =text_field_tag 'price', @book.price %p =submit_tag 'submit'