url_for([:edit, @post])
is working and generating /comments/123/edit. Now I need to add a query parameter, so that instead of
/comments/123/edit
You can use polymorphic_path
polymorphic_path
polymorphic_path([:edit, @post], :qp => 'asdf')