Ruby on Rails Monday, March 7, 2016

On 7 March 2016 at 15:40, Hitesh Sancheti <lists@ruby-forum.com> wrote:
> http://damp-dusk-43146.herokuapp.com/
> From the top nav bar, the 'Show Post' link takes me back to the home
> page. But I want it to take me to
> https://github.com/hitesh99/ror_blog/blob/master/app/views/posts/allposts.html.erb
>
> Is there anything that needs to be defined in routes?
> https://github.com/hitesh99/ror_blog/blob/master/config/routes.rb

What do you see in the log file when you click the link? Having
studied that if you do not understand it then copy/paste a few lines
of code around the Show Post link so we can see what you are doing,
and also post the relevant section of the log.

If you had something missing from the routes you would get a routing error.

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%3D0gLvithz11CVhBk0t11xVdsJR_9PXp%3DZ7pqNGCM3pDTGLGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment