<% articles.each do |article| %>
  <%= link_to article.title, article_path(article) %>
<% end %>

Is that you figuring out or I missed something wrong?



> 
> 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.
>                                                                               
>                 ^^^^^ send article object!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to