With the first two the problem might be, that rails/ruby has no idea what factory, demo and user are - it thinks that those are methods or variables
<%= link_to "test", "/foo/bar/" %> works when I tried it On Thursday, September 18, 2014 11:32:04 PM UTC+2, Paolo Di Pietro wrote: > > I tried the following and others, but > > <%= link_to "some text", factory/demo/user/9 %> > <%= link_to "some text", factories/demo/chat %> > <%= link_to "some text","/factory/demo" %> > <%= link_to ("some text","/factory/demo") %> > > 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/64126c91-7307-41ef-8f88-53e29b88143b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.