Hi there, I just installed rails and I am reading the Agile Development with Rails Book. Anyhow, I am trying to use link_to method, as such : <% link_to "GoodBye", {:action=>"goodbye"}%> The problem I have is that the link does not show up. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Use <%= instead <% to show the result. David Rodrigues On 10/25/05, Sergi Borras <aedesis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi there, > > I just installed rails and I am reading the Agile Development with Rails > Book. > > Anyhow, I am trying to use link_to method, as such : <% link_to "GoodBye", > {:action=>"goodbye"}%> > > The problem I have is that the link does not show up. > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/25/05, Sergi Borras <aedesis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there, > > I just installed rails and I am reading the Agile Development with Rails > Book. > > Anyhow, I am trying to use link_to method, as such : <% link_to "GoodBye", > {:action=>"goodbye"}%> > > The problem I have is that the link does not show up. >link_to returns a string, so you have to use <%= link_to "GoodBye", {:action=>"goodbye"}%> to output it -- Cristi BALAN