So this is another obvious question, but if you’re referring to
something using Erb, such as <%[email protected]%>, and you need to put
that into a link_to tag, how would you do it?
I have:
<%= link_to(post.title, :action=>‘show’, :id=>post%>
I have:
<%= link_to(post.title, :action=>‘show’, :id=>post%>
But that doesn’t seem to work. Thoughts?
Ron, I know you have your question answered, but in the future if you
provide more specifics than “doesn’t seem to work,” you can get better
help. If it’s breaking, a stack trace might be in order.
Also, a little more context is useful. For example, telling us you set @page in your controller or something like that.
I think that will make your feedback from the community quicker and
more accurate.