I am using Rails 3 and am having trouble inserting a query string into a link.
I have a table of posts, and each post has comments. On the posts index page I have each comment with a link to "reply" to the comment. I want to insert a query string in the link to "reply"... but it isn't working. The line I am using looks like this.
<%= link_to 'Reply', comment.post, :reply => "@"+comment.commenter+":" if !viewing_post? %>
This links to show the post and comment form just fine, but the query string never makes it into the url. Why is this happening?
comment.postis a valid url? and are you sure of your!viewing_postcondition?