[#4177] Hooked up the create action for contracts.
This commit is contained in:
@@ -6,6 +6,10 @@ class ContractsController < InheritedResources::Base
|
||||
before_filter :find_project
|
||||
before_filter :authorize
|
||||
|
||||
def create
|
||||
create! { contract_url(@project, resource) }
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def begin_of_association_chain
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<tbody>
|
||||
<% collection.each do |contract| %>
|
||||
<% content_tag_for(:tr, contract) do %>
|
||||
<td class="id"><%= h contract.id %></td>
|
||||
<td class="id"><%= link_to(h(contract.id), contract_path(@project, contract)) %></td>
|
||||
<td class="name"><%= h contract.name %></td>
|
||||
<td class="account-executive"><%= h contract.account_executive.name %></td>
|
||||
<td class="end-date"><%= h format_date(contract.end_date) %></td>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user