hi There,
I’m wanting to link to a page - my index.html
I was thinking this would work, but it’s not. Any direction is
appreciated.
Thanks
hi There,
I’m wanting to link to a page - my index.html
I was thinking this would work, but it’s not. Any direction is
appreciated.
Thanks
I do have posts defined.
The links for some reason is out of place and un-clickable.
It depends on what is defined in your routes.rb
If you defined the resource Post it shoul works
Otherwise, can you show us what is the error that is happening?
Regards,
On 1 November 2012 21:14, wragen22 [email protected] wrote:
Hmm…figured it out.
Changed to this and working now.
<%= link_to "Posts", posts_path %>
When you have that sort of issue but cannot immediately see the
problem a useful technique is to copy/paste the complete html source
of the page into the w3c html validator. It will point out to you any
errors in the html, which was the problem that you had.
In fact it is worth doing it with each page even if it does look good,
you will often find that there are errors that you had not noticed.
Colin
Hmm…figured it out.
Changed to this and working now.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs