Created
September 1, 2012 19:34
-
-
Save keppy/3584678 to your computer and use it in GitHub Desktop.
TypeError in InvoicesController#show_client_invoices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/controllers/invoices_controller.rb:3:in `[]' | |
app/controllers/invoices_controller.rb:3:in `show_client_invoices' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @clients.each do |c| %> | |
<li><%= link_to c.name, show_client_invoices_invoices_path(:invoice => "1", :company_id => "#{c.id}")%></li> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show_client_invoices_invoices GET /invoices/show_client_invoices(.:format) invoices#show_client_invoices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show_client_invoices | |
if params[:invoice][:company_id] != "" | |
@company = Client.find(params[:invoice][:company_id]) | |
@invoice_reservations = @company.invoice_reservations | |
render :partial => 'client_reservations', :content_type => 'text/html' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment