How can I pass :canvas => false in remote_form_for tag with a nested object url? Since nested_url requires parent object and I put it side the url options not sure how to specify both. I''ve tried various permutations of form parameters but can''t find a way to make it work. Any suggestions woudl greatly be appreciated. Example of what I''m trying: <% remote_form_for(:comment, Comment.new, :url => post_comment_url((:canvas => false)(@post)), :update => "post" ) Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080420/c3b9eeb4/attachment.html
"Ken Schroeder" <schroeder.ken at gmail.com> writes:> How can I pass :canvas => false in remote_form_for tag with a nested > object url?[...]> Example of what I''m trying: > <% remote_form_for(:comment, Comment.new, :url => > post_comment_url((:canvas => false)(@post)), :update => "post" )Try this: post_comment_url(@post, :canvas => false) Jim
Try post_comment_url(:id=>@post,:canvas=>false) Mike On Apr 20, 2008, at 12:22 PM, Ken Schroeder wrote:> How can I pass :canvas => false in remote_form_for tag with a nested > object url? Since nested_url requires parent object and I put it > side the url options not sure how to specify both. I''ve tried > various permutations of form parameters but can''t find a way to make > it work. Any suggestions woudl greatly be appreciated. > > Example of what I''m trying: > <% remote_form_for(:comment, Comment.new, :url => > post_comment_url((:canvas => false)(@post)), :update => "post" ) > > > Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com