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 Aureliano* -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<% 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Nops, thats it. Thanks! =D On Sat, Jun 4, 2011 at 7:25 PM, Valery Kvon <addager-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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> -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Nops, thats it. Thanks! =D > > > On Sat, Jun 4, 2011 at 7:25 PM, Valery Kvon <addager-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sorry, works now. On Sun, Jun 5, 2011 at 11:45 AM, Fernando Aureliano < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> 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 < > mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: > >> Nops, thats it. Thanks! =D >> >> >> On Sat, Jun 4, 2011 at 7:25 PM, Valery Kvon <addager-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> 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> > >-- *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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.