this is bugging me. I've downloaded and installed the sample app hxxxs://github.com/javiervd/laravel-ember-todo and everything seems to work fine when I do artisan serve and work with the site at localhost:8000, but if I just load the site through the app directory localhost/laravel-ember-todo/public the console log immediately tells me: hxxp://127.0.0.1/todos not found 404 error I've researched around but couldn't find a solution to my problem.
Thanks for shedding light on this issue.
If any more information is required I will be happy to provide.
UPDATE
I've updated todo.js with:
/* global App, Ember */
App.Todo = DS.Model.extend({
adapter: DS.RESTAdapter.reopen({
namespace: 'laravel-ember-todo'
}),
text: DS.attr('string'),
isCompleted: DS.attr('boolean'),
todoDidChange: function () {
Ember.run.once(this, function () {
this.get('store').commit();
});
}.observes('isCompleted', 'text')
});
but I'm still getting: Failed to load resource: the server responded with a status of 404 (Not Found) 127.0.0.1/laravel-ember-todo/todos In firebug it's saying the error is occurring at jquery.min.js (line 5).
routes.phplook like? - Darshan Sawardekar