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!


Fernando A.

<% 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

On Sat, Jun 4, 2011 at 7:25 PM, Valery K. [email protected] wrote:

on title on a block of code (each), and do this link go to show function and
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Fernando A.

[iOSDeveloper] - ObjectiveC
[WebDesigner] - CSS3&HTML5
[WebDeveloper] - RubyOnRails
*--------------------------------------------------------------
*
[portfolio] http://www.fernandoaureliano.com -
[blog]http://www.fernandoaureliano.com/

Sorry, works now.

On Sun, Jun 5, 2011 at 11:45 AM, Fernando A. <
[email protected]> wrote:

On Sat, Jun 4, 2011 at 7:25 PM, Valery K. [email protected] wrote:

I’m new on rails, and I would like like to know how I do for I get a
“Ruby on Rails: Talk” group.
Fernando A.


Fernando A.

[iOSDeveloper] - ObjectiveC
[WebDesigner] - CSS3&HTML5
[WebDeveloper] - RubyOnRails
*--------------------------------------------------------------
*
[portfolio] http://www.fernandoaureliano.com -
[blog]http://www.fernandoaureliano.com/

I’m getting an error with this sintax =(

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

On Sat, Jun 4, 2011 at 7:36 PM, Fernando A. <
[email protected]> wrote:

[portfolio] http://www.fernandoaureliano.com -
[blog]http://www.fernandoaureliano.com/


Fernando A.

[iOSDeveloper] - ObjectiveC
[WebDesigner] - CSS3&HTML5
[WebDeveloper] - RubyOnRails
*--------------------------------------------------------------
*
[portfolio] http://www.fernandoaureliano.com -
[blog]http://www.fernandoaureliano.com/