loos
11 years ago
5 changed files with 77 additions and 69 deletions
@ -1,6 +1,8 @@ |
|||
<h1>Editing bike</h1> |
|||
<div class="container"> |
|||
<h1>Editing bike</h1> |
|||
|
|||
<%= render 'form' %> |
|||
<%= render 'form' %> |
|||
|
|||
<%= link_to 'Show', @bike %> | |
|||
<%= link_to 'Back', bikes_path %> |
|||
<%= link_to 'Show', @bike %> | |
|||
<%= link_to 'Back', bikes_path %> |
|||
</div> |
|||
|
@ -1,7 +1,9 @@ |
|||
<p id="notice"><%= notice %></p> |
|||
<%= form_for(@bike) do |f| %> |
|||
<div class="container"> |
|||
<p id="notice"><%= notice %></p> |
|||
<%= form_for(@bike) do |f| %> |
|||
<%= render 'fields', f: f, disabled: true %> |
|||
<% end %> |
|||
<% end %> |
|||
|
|||
<%= link_to 'Edit', edit_bike_path(@bike) %> | |
|||
<%= link_to 'Back', bikes_path %> |
|||
<%= link_to 'Edit', edit_bike_path(@bike) %> | |
|||
<%= link_to 'Back', bikes_path %> |
|||
</div> |
|||
|
Loading…
Reference in new issue