14 lines
348 B
Text
14 lines
348 B
Text
|
<h4>Edit book</h4>
|
||
|
<%= form_for @book do |f|%>
|
||
|
<%= f.label :title %>
|
||
|
<%= f.text_field :title %>
|
||
|
<%= f.label :price %>
|
||
|
<%= f.number_field :price, step: 0.01 %>
|
||
|
<label>
|
||
|
<div>
|
||
|
<%= f.check_box :published, class: 'filled-in' %>
|
||
|
<span>published</span>
|
||
|
</div>
|
||
|
</label>
|
||
|
<%= f.submit 'Save changes', class: 'btn' %>
|
||
|
<%end%>
|