the future is in beta

home about

Ember-rails gem commands

11 Feb 2014

This is a personal note for remembering basic ember-rails commands:


First, you’ll need to add a couple of gems into your Gemfile

gem 'ember-rails'
gem 'ember-source'

Then, create a scaffold for your Ember app and install source files (ember & ember-data)

$ bin/rails generate ember:bootstrap
% bin/rails generate ember:install

This will create a bunch of new folders and directories.

Basic commands

Create a new tales route:

$ bin/rails g ember:route tales

Create tales template:

$ bin/rails g ember:template tales

Create new tale form template:

$ bin/rails g ember:template tables/new