Hello,
Still getting my feet wet with Rails, and especially RESTful Rails and am looking for some help tackling an issue
In routes.rb i have:
map.resources :houses do |house| house.resources :chores, :member => {:complete => :any} end
This way when a user goes to mark a chore as complete, i call the ChoresController:complete action to pull up a form to select who completed the given chore.
I'm curious as to how i RESTfully update this chore. I can't use the update action as that is used by the edit form, plus i need to add some additional details, such as the completed_at time.
Is there a way to detect in the complete action whether it's a PUT or a GET request? Any recommendations on how to RESTfully handle this would be appreciated.
Thanks! Adam