Re: [Rails] Embarrassingly Simple Question

Done.  No effect.  As I mentioned, I don't think it's a routing problem.  It is a rendering problem.  Somewhere in the Rails system where it renders view template code, it is not rendering the expected html link.

Thanks again for your continued interest and suggestions.

On Saturday, July 5, 2014 1:49:44 PM UTC-5, Walter Lee Davis wrote:

On Jul 5, 2014, at 2:46 PM, Jay Garnett wrote:

> Here is my current routes.db:
>
> Rails.application.routes.draw do
>
>   root "demo#index"
>   match ':controller(/:action(:id))', :via => :get
>
> end
>
> But I don't think routing is the problem.  The rendered links are the problem as they aren't pointing to the right URL in the first place.   When the user clicks on the link, they are being routed correctly but the link isn't pointing where it was intended to point.

Try putting your root directive as the very last thing in the routes file. That's where it belongs, as it's the last option possible.

Walter

>
> On Saturday, July 5, 2014 1:25:27 PM UTC-5, Colin Law wrote:
> On 5 July 2014 16:00, Jay Garnett <c340...@gmail.com> wrote:
> > Thanks Walter, for your reply.
> >
> > The tutorial is a year or so old.  They are using a slightly older version,
> > but still 4.0+.
> >
> > I am running the current stable build of Rails, which is 4.1.2.  For a
> > webserver, it was recommended that I run what they are running in the
> > tutorial, which is WEBrick.
>
> I have not used rails 4.1, is there a change that says the one must
> have appropriate routes setup for this to work?
>
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3d853b44-372e-4031-95b3-5e7ce1aac763%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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/2e3d20ac-5e89-4908-84fa-969a75b46f19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.