Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from glennmartinez/_contractors.html.erb
Created August 31, 2012 10:31
Show Gist options
  • Select an option

  • Save radar/3551266 to your computer and use it in GitHub Desktop.

Select an option

Save radar/3551266 to your computer and use it in GitHub Desktop.
not getting quote.id from return ajax search
<table>
<% @contractors.each do |contractor| %>
<tr>
<td><%= contractor.firstname %></td>
<td>
<%= button_to("Add", add_contractor_quote_path(@quote, :contractor_id => contractor.id)) %>
</td>
</tr>
<% end %>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment