Newbie question

Hi,

I’m new on rails, and I would like like to know how I do for I get a link on title on a block of code (each), and do this link go to show function and show up.

should be something like “link_to article.title, article_path”? I already tried that and I get broken the page.

thanks!

<% articles.each do |article| %>

<%= link_to article.title, article_path(article) %>

<% end %>

Is that you figuring out or I missed something wrong?

Nops, thats it. Thanks! =D

I’m getting an error with this sintax =(

<%= link_to article.title, article_path(article) %>

Sorry, works now.