diff --git a/app/router.js b/app/router.js index 7cc5107..3048e99 100644 --- a/app/router.js +++ b/app/router.js @@ -6,7 +6,9 @@ var Router = Ember.Router.extend({ }); Router.map(function() { - this.route('events'); + this.route('events', function() { + this.route('show', { path: '/:id' }); + }); }); export default Router; diff --git a/app/routes/events/show.js b/app/routes/events/show.js new file mode 100644 index 0000000..d76c0ac --- /dev/null +++ b/app/routes/events/show.js @@ -0,0 +1,7 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ + model: function(params) { + return this.store.find('event', params.id); + } +}); \ No newline at end of file diff --git a/app/styles/app.scss b/app/styles/app.scss index 66a3762..575d2fb 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -12,6 +12,6 @@ body, html { float: left; } -.events { +ul { list-style: none; } \ No newline at end of file diff --git a/app/templates/events.hbs b/app/templates/events.hbs index 0018ce9..e935939 100644 --- a/app/templates/events.hbs +++ b/app/templates/events.hbs @@ -1,6 +1,13 @@ - -{{outlet}} +
+
+ +
+
+ {{outlet}} +
+
+ diff --git a/app/templates/events/show.hbs b/app/templates/events/show.hbs new file mode 100644 index 0000000..7c7dede --- /dev/null +++ b/app/templates/events/show.hbs @@ -0,0 +1,6 @@ + +{{outlet}} diff --git a/tests/unit/routes/events/show-test.js b/tests/unit/routes/events/show-test.js new file mode 100644 index 0000000..9fa6838 --- /dev/null +++ b/tests/unit/routes/events/show-test.js @@ -0,0 +1,14 @@ +import { + moduleFor, + test +} from 'ember-qunit'; + +moduleFor('route:events/show', 'EventsShowRoute', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function() { + var route = this.subject(); + ok(route); +});