I have an ActiveResource named Discussion. In my views, I often call
discussion_path(@discussion) and I’d like to add on the post count
(discussion.posts.count) as a get var. I’m want my urls to be like: http://nearbygamers.com/discussions/14?posts=3 so that folks who’ve
read a forum see blue links for discussions that have had posts added
to them.
I’ve tried adding options to the discussion_path call in my views
which just blows up with various unhelpful messages (either that
“discussion url failed to generate” or a call to nil.to_sym). I’ve
tried writing my own discussion_path helper with similar results. Any
suggestions?