简体   繁体   中英

Using Rails & Devise with Ember.js

This question is based on this tutorial http://say26.com/using-rails-devise-with-ember-js .

I don't know if I'm making a silly mistake or if the data-binding is just not working correctly. But when I login, I don't get the user's name - it defaults to "Guest" every time.

Please see this gist that includes all the files associated: https://gist.github.com/amaanr/5577152

I am running rails 4, ruby 2, ember-rails gem, and devise gem.

Thanks for your help!

Have you tried

//= require_tree ./initializers

You need to make sure that you include the initializer folder in the rails asset pipeline.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM