move commission to origami

This commit is contained in:
Zin Lin Phyo
2017-08-21 16:31:04 +06:30
parent 618f5f3b7c
commit f26bc83b42
20 changed files with 312 additions and 138 deletions

View File

@@ -1,4 +1,4 @@
<%= simple_form_for(@commission) do |f| %>
<%= simple_form_for([:origami,@commission]) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">

View File

@@ -13,7 +13,7 @@
<% @commissions.each do |commission| %>
<tr>
<td><%= link_to 'Show', commission %></td>
<td><%= link_to 'Edit', edit_commission_path(commission) %></td>
<td><%= link_to 'Edit', edit_origami_commission_path(commission) %></td>
<td><%= link_to 'Destroy', commission, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
@@ -22,4 +22,4 @@
<br>
<%= link_to 'New Commission', new_commission_path %>
<%= link_to 'New Commission', new_origami_commission_path %>

View File

@@ -2,4 +2,4 @@
<%= render 'form', commission: @commission %>
<%= link_to 'Back', commissions_path %>
<%= link_to 'Back', origami_commissions_path %>