Rails and ember problem with guide


#1

Hi I try to study a integration between rails and ember. I find this guide http://nandovieira.com/setting-up-emberjs-with-rails and I have this error at the end…I think the problem is the router http://nandovieira.com/setting-up-emberjs-with-rails..This my first time with ember…Ps: Can you suggest me simple guide

Exiting /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/mapper.rb:253:in `merge': no implicit conversion of String into Hash (TypeError)
    from /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/mapper.rb:253:in `root'
    from /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/mapper.rb:1328:in `root'
    from /home/alessio/Videos/MyApp/config/routes.rb:2:in `block in <top (required)>'
    from /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:285:in `instance_exec'
    from /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:285:in `eval_block'
    from /var/lib/gems/2.1.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:263:in `draw'
    from /home/alessio/Videos/MyApp/config/routes.rb:1:in `<top (required)>'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `block in load'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:40:in `each'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:40:in `load_paths'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:16:in `reload!'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:26:in `block in updater'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/file_update_checker.rb:78:in `call'
    from /var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/file_update_checker.rb:78:in `execute'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:27:in `updater'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/initializable.rb:30:in `instance_exec'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/initializable.rb:30:in `run'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/initializable.rb:54:in `each'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/initializable.rb:54:in `run_initializers'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/application.rb:136:in `initialize!'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /home/alessio/Videos/MyApp/config/environment.rb:5:in `<top (required)>'
    from /home/alessio/Videos/MyApp/config.ru:3:in `require'
    from /home/alessio/Videos/MyApp/config.ru:3:in `block in <main>'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/builder.rb:51:in `instance_eval'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/builder.rb:51:in `initialize'
    from /home/alessio/Videos/MyApp/config.ru:in `new'
    from /home/alessio/Videos/MyApp/config.ru:in `<main>'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/builder.rb:40:in `eval'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/builder.rb:40:in `parse_file'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/server.rb:200:in `app'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands/server.rb:46:in `app'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/server.rb:304:in `wrapped_app'
    from /var/lib/gems/2.1.0/gems/rack-1.4.7/lib/rack/server.rb:254:in `start'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands/server.rb:70:in `start'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:50:in `tap'
    from /var/lib/gems/2.1.0/gems/railties-3.2.21/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

#2

The Ember tutorial over at the guides is a pretty good place to start. I would stick to ember-cli and not use the rails gem.