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 Aureliano <
m...@fernandoaureliano.com> wrote:

> Nops, thats it. Thanks! =D
>
>
> On Sat, Jun 4, 2011 at 7:25 PM, Valery Kvon <adda...@gmail.com> wrote:
>
>> <% 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.
>>
>
>
>
> --
> *Fernando Aureliano*
> --------------------------------------------------------------
> [iOSDeveloper] - *ObjectiveC*
> [WebDesigner] - *CSS3&HTML5*
> *[WebDeveloper] - RubyOnRails*
> *--------------------------------------------------------------
> *
> [portfolio] <http://www.fernandoaureliano.com> - 
> [blog]<http://www.fernandoaureliano.com/>
>  - [personal blog] <http://www.obsessivocompulsivo.com/> - 
> [twitter]<http://twitter.com/Pailoro>
>
>


-- 
*Fernando Aureliano*
--------------------------------------------------------------
[iOSDeveloper] - *ObjectiveC*
[WebDesigner] - *CSS3&HTML5*
*[WebDeveloper] - RubyOnRails*
*--------------------------------------------------------------
*
[portfolio] <http://www.fernandoaureliano.com> -
[blog]<http://www.fernandoaureliano.com/>
 - [personal blog] <http://www.obsessivocompulsivo.com/> -
[twitter]<http://twitter.com/Pailoro>

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