For the restful way first you have to properly add the non restful action to
the routes

member do
POST channel_invites_approve
end

and then pass the value since this will create a helper like this

channel_invites_approve_path()

and you can pass the value like this

channel_invites_approve_path(@invitations)

but i would do all this in the create action of a controller.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to