On 18 September 2014 22:32, Paolo Di Pietro <paolodipietr...@gmail.com> wrote: > I tried the following and others, but > > <%= link_to "some text", factory/demo/user/9 %> > <%= link_to "some text", factories/demo/chat %>
Those two are not valid as the second parameter you have provided should be a variable a method or a string. > <%= link_to "some text","/factory/demo" %> That one appears to be valid ruby, what do you see in the terminal when you click it? > <%= link_to ("some text","/factory/demo") %> Basic ruby again, a space after the method is not valid, should be link_to(.. not link_to (.. Colin. > > not clear where 'You don't want to have white space between method name and > brackets so either ...." > > > Il giorno giovedì 18 settembre 2014 23:15:54 UTC+2, Colin Law ha scritto: >> >> On 18 September 2014 22:04, Paolo Di Pietro <paolodi...@gmail.com> wrote: >>> >>> Done! >>> >>> Then I put >>> <%= link_to "some text", /factory/demo/message/1389/ %> >>> in my .erb file >>> >> >> I think maybe before worrying about generic routes you need to get to >> grips with the basics of ruby and rails. I suggest you start by working >> right through a good tutorial such as railstutorial.org (which is free to >> use online). >> >> Colin >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/a7383407-ee4e-4336-8cdf-8dc2f712c977%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsVt6CGL3NavRepCQNGEDKn2%2BskPJm-QwOFfy7%2BM7zLJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.