简体   繁体   English

在Ember.js中使用Rails&Devise

[英]Using Rails & Devise with Ember.js

This question is based on this tutorial http://say26.com/using-rails-devise-with-ember-js . 该问题基于本教程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. 但是,当我登录时,没有得到用户名-每次都默认为“ Guest”。

Please see this gist that includes all the files associated: https://gist.github.com/amaanr/5577152 请查看包含所有相关文件的要点: https : //gist.github.com/amaanr/5577152

I am running rails 4, ruby 2, ember-rails gem, and devise gem. 我正在运行rails 4,ruby 2,ember-rails gem和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. 您需要确保在Rails资产管道中包括Initializer文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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