Apologies if this seems a bit vague.
Basically I have a page which loads content based on id. I’m trying to put links withing it like this
<%= link_to 'mypage', {:action => 'mypageload', :id => '1'},{:class=>'mypages'}%>
What I’d like to do is pass the id of the current page into this link.
So something like
:id => 'params[:id]'
Is there a way to do this?
Remove the single quotes:
:id => params[:id]