Hey everyone,
I am currently writing a Bet program, which consists of 5 forms, a home
form and a form for all of my tables. I am trying to use the button_to
command to link from the home controller/index to another forms/edit
action.
This is what I have so far, any help would be great:
<td><%= button_to 'Decrease Date', {:controller => :bets, :id =>
Bet.find_by_milestone_id(m.id), :action => :edit} %></td>
and I receive this error:
Couldn't find Bet without an ID
Thanks,
Hunter
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.