On 5 July 2014 07:45, Jay Garnett <c340pilot@gmail.com> wrote:
> I'm the ultimate newb on ROR. I am following through a tutorial on
> Lynda.com called "Ruby on Rails 4 Essential Training". I am learning about
> the MVC structure. They show a web page that has the following links:
>
> <a href="/demo/hello">Hello page 1</a><br />
> <%= link_to('Hello page 2', {:action => 'hello'}) %><br />
>
> According to the tutorial, both links, once rendered, should be identical,
> but they are not and I can't figure out why.
Is it possible you had an error at some point and the page has not
refreshed in the browser, try changing the Hello page 2 text just to
make sure.
Otherwise, what happens if you say
<%= link_to('Hello page 3', {:controller => 'demo', :action => 'hello'}) %>
I would not have thought you should need it but when something is not
working it can be instructive to try stuff.
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+unsubscribe@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%3D0gLvnYkTJj6Gu5P1SkA_B%3DRoUPoT39%2Bv-9JTL1%3D4pTHqR4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.