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. <li class="active"<%= link_to "Posts", posts_path %></li> Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_X-RgnYpmusJ. For more options, visit https://groups.google.com/groups/opt_out.
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, --------------------------------- Felipe Lopes Web Developer - Looking for a Rails remote mid position -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/T6vQVC38KsgJ. For more options, visit https://groups.google.com/groups/opt_out.
I do have posts defined. The links for some reason is out of place and un-clickable. <https://lh5.googleusercontent.com/-lhjq5pWzWek/UJLlxHRiw6I/AAAAAAAAAqQ/niESUvH5KNw/s1600/Screen+Shot+2012-11-01+at+2.10.39+PM.png> On Thursday, November 1, 2012 1:53:16 PM UTC-7, felipeclopes wrote:> > 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, > --------------------------------- > Felipe Lopes > Web Developer - Looking for a Rails remote mid position >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/zSwgeWBsoCMJ. For more options, visit https://groups.google.com/groups/opt_out.
Hmm..figured it out. Changed to this and working now. <li><%= link_to "Posts", posts_path %></li> On Thursday, November 1, 2012 1:53:16 PM UTC-7, felipeclopes wrote:> > 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, > --------------------------------- > Felipe Lopes > Web Developer - Looking for a Rails remote mid position >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/jP0v_OqUli8J. For more options, visit https://groups.google.com/groups/opt_out.
On 1 November 2012 21:14, wragen22 <bradwrage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmm..figured it out. > > Changed to this and working now. > > <li><%= link_to "Posts", posts_path %></li>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> > > On Thursday, November 1, 2012 1:53:16 PM UTC-7, felipeclopes wrote: >> >> 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, >> --------------------------------- >> Felipe Lopes >> Web Developer - Looking for a Rails remote mid position > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/jP0v_OqUli8J. > > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.