Hey!
Thank you for reading this post.
I installed this: https://github.com/emberjs/ember-rails using the edge template (with a few modifications to get it working with windows). After running the edge template, I ran rails g ember:bootstrap -g --javascript-engine js
which generated all of the necessary files and also a demo application.handlebars
file.
I then proceed to create a test.handlebars and added it to the router. Then I simply created a linkto
on the homepage and refreshed the page. The problem is when I click that link, it changes the url to /#/help
but it still shows the homepage and not the test page. Then, if I try going to localhost:3000/test
, I just get a Rails Application error saying that the route doesnt exist.
Now my two questions are:
- How can I get the test page to work with ember (and rails)?
- Second, how can I get it so that if you load
localhost:3000/test
or some other link, it maps to the ember route?
The full source is avaialbe here: https://github.com/nahtnam/Learning/ (some folders are missing, but that is because they are empty).
Any help would be appreciated. Thanks you so much!