I have a form which contains rows like this one. I need to be able to call a method on a controller using ajax/jquery when the user clicks the radio button. The method would change the underlying model, on return it would show a message in the flash on the client.
<tr>
<td><%= radio_button_tag 'primary', feature_photo.id %></td>
<td>
<%= feature_photo.name %>
By: <%= feature_photo.photo_credit %>
</td>
<tr>