0

Please help me to understand one dumb thing. In one hand I have user with many posts, in other hand I have list with posts (every post have button) in view. On button I need to call custom method on current post with parameters. How to do this?

4

1 回答 1

0

尝试这个:

link_to 'Submit', model_path(:query => "value"), :remote => true, :method => :post
于 2012-07-19T09:59:54.527 回答