Hi
I’m trying to render a partial but i recive an unexpected result.
why isn’t the id of the menupage isn’t generated in the link ?
Thanks!
here is the code :
controller :
@menupages = @site.pages
@menupages = Page.find(:all)
render :layout => @templatename
rhtml :
<%= render( :partial => ‘page/menu’, :collection => @menupages
) %>
partial :
<%= link_to( ‘Link’, { :action => ‘view’, :id => @menupage },
:class => “current” ) %>
and the result HTML: