I'm trying to create some pages in HAML, which are partly working. The HTML that it produces is correct, apart from one thing. Where I have:
%ul#menu
%li
= link_to 'Home', root_url
I am expecting to get back:
<a href="/">Home</a>
Instead, it is producing:
<a href>Home</a>
Upon looking into it further, it seems that all of my named routes are simply returning a blank string and not the route they are meant to. This is happening on all of them not just root.
If I try changing it to a made-up name, something like 'test_path' then, as I expect, I get an error saying the method doesn't exist, so it's not a case of not being able to find it, it's simply not returning anything.
In the Rails console I am able to get the correct route so I know it's working, and rake routes
gives me:
about /about(.:format) welcome#about
contact /contact(.:format) welcome#contact
faq /faq(.:format) welcome#faq
plans /plans(.:format) welcome#plans
root / welcome#index
Can anyone help as this is a pretty major issue and makes it pretty hard to keep developing if I can't generate links to anything