Saturday, 15 May 2010

html - Ruby on Rails link_to -


I am using link_to for some HTML elements and I have it: "", {: Controller = & gt; "Post"} ,: id = & gt; "Post",: class => "Read-More"% & gt;

But I want to link it to those posts which are in every post, any help would be most appreciated

thanks

config / routes.rb

  Resource: Post   < Hr> 
  & lt;% @ posts.each do | Post | & Gt%; & Lt;% = link_to "View post", post_path (post) ,: id = & gt; "Post",: class => "Read-more"%> & Lt;% end% & gt;    

No comments:

Post a Comment