I have to send id in my controller like this:
<%=link_to(@active,{:controller => 'emppedes', :action=> 'index', :id => @id})%>
but using href instead of link_to. If I do this with href:
<a href="/emppedes">
the id is not sent.
<a href="/ emppedes :id => @id">
does not work. How can I send id through href?
Why can’t you use the
link_tohelper? Anyway, you probably want:But i strongly recommend against using raw tags for links inside your app. I’m sure you can achieve everything with the
link_tohelper, too. Please give an example why you think you can’t use it.(In reply to your comment) I would do it this way: