[Rails] Passing primary key into the controller from view.

2011-03-18 Thread Chandu80
Hello All I have an invitations page where all invitations for channels sent are listed with checkboxes.An Accept and Reject button is present at the end of the list. The logged in user can accept or reject the invitations by selecting the checkboxes. In my invitations.html.erb(which is my

Re: [Rails] Passing primary key into the controller from view.

2011-03-18 Thread radhames brito
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