ember-rails

handlebar precompile version error in Ember rc5

二次信任 提交于 2020-01-04 05:25:12
问题 I'm upgrading to Ember rc5 from rc3, but I'm getting the following error: Uncaught Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 1.0.0-rc.4) or downgrade your runtime to an older version (== 1.0.0-rc.3) Here are the relevant lines in my gemfile, taken straight from the ember-rails README (except pulling the gem from git... it gives the same error whether I include that or not) gem 'ember-rails', git

Uncaught Error: Could not find module `ember-load-initializers`

我只是一个虾纸丫 提交于 2019-12-10 23:49:16
问题 i am getting error after running compiled ember rails application. Here is the error while inspecting the page. Uncaught Error: Could not find module `ember-load-initializers` imported from `(require)` Uncaught Error: Could not find module `active-model-adapter` imported from `account-settings/initializers/active-model-adapter` here is my bower.json and package.json files: { "name": "account-settings", "dependencies": { "ember": "^2.0", "ember-cli-shims": "0.0.6", "ember-cli-test-loader": "0

Passing hidden parameters between routes

泄露秘密 提交于 2019-12-10 18:11:39
问题 I am much new to Ember.js, and trying to create an application where i need to surf through dates and privecy of records What i want to do is, i need to pass one variable value through ember routes without showing it on url appcication_routes.js.coffee App.Router.map -> @resource 'user', { path: '/user/:user_id' }, -> @resource 'user_feed', { path: '/feed' }, -> @route 'posts', { path: '/:date' } user_routes.js.coffee App.UserFeedIndexRoute = App.Route.extend activate: -> controller =

Ember Routes and Rails Routes

烈酒焚心 提交于 2019-12-07 02:56:26
问题 This is the question that I've had ever since I started studying Ember to see how it might work with Rails. Rails has a routes.rb file with any number of existing routes. Ember has its own separate set of routes. How does the browser know to look for an Ember route when the route does not exist in rails? It would seem logical that rails would need to redirect the browser to Ember, but I have not seen that written up anywhere. In most cases where there's an existing rails app, the route in

How can I specify an alternative directory for my HandlebarsJS templates with the ember-rails gem?

佐手、 提交于 2019-12-07 02:30:21
问题 I have a Rails application, and I'm using Ember on the front-end. I'd like to move the ember-related files down one level in the directory structure, but when I do, the templates no longer render. In the plain, vanilla, working version of the application, my directory structure is: ./app/ assets/ javascripts application.js ember-app.js routes.js store.js models/ controllers/ routes/ templates/ views/ with: application.js //= require jquery //= require jquery_ujs //= require handlebars //=

How can I specify an alternative directory for my HandlebarsJS templates with the ember-rails gem?

浪尽此生 提交于 2019-12-05 05:16:43
I have a Rails application, and I'm using Ember on the front-end. I'd like to move the ember-related files down one level in the directory structure, but when I do, the templates no longer render. In the plain, vanilla, working version of the application, my directory structure is: ./app/ assets/ javascripts application.js ember-app.js routes.js store.js models/ controllers/ routes/ templates/ views/ with: application.js //= require jquery //= require jquery_ujs //= require handlebars //= require ember //= require ember-data //= require_self //= require ember-app App = Ember.Application.create

Deploying ember-rails to Heroku - TypeError: Cannot read property 'typeKey' of undefined

孤街浪徒 提交于 2019-12-02 07:08:12
Part of the page loads then blank and I get the following error. TypeError: Cannot read property 'typeKey' of undefined at Ember.Object.extend.modelFor (http://my-app.herokuapp.com/assets/manifest-docs-cbb67138a1a7e2bbc15fdbae9b24aa06.js:19:12298) at Ember.Object.extend.recordForId (http://my-app.herokuapp.com/assets/manifest-docs-cbb67138a1a7e2bbc15fdbae9b24aa06.js:19:8860) at s (http://my-app.herokuapp.com/assets/manifest-docs-cbb67138a1a7e2bbc15fdbae9b24aa06.js:19:1790) at http://my-app.herokuapp.com/assets/manifest-docs-cbb67138a1a7e2bbc15fdbae9b24aa06.js:19:1524 at http://my-app.herokuapp

How to enable query-params-new feature using ember-rails

我的未来我决定 提交于 2019-12-01 20:13:15
问题 I am having trouble using the query-params-new feature. My version of ember is 1.4.0-beta.2. Ember.js is loaded into my rails app through the ember-rails and ember-source gems. Before initializing the Ember App I turn on the feature like so. Ember.FEATURES["query-params-new"] = true After doing so I get the following error when navigating to any route. Error while loading route: TypeError: Object [object Object] has no method 'paramsFor' at Ember.Route.Ember.Object.extend.deserialize Am I

Ember.js with Rails4: browser back button crash ember application

 ̄綄美尐妖づ 提交于 2019-12-01 04:16:43
EDIT: the issue is solved. Removing turbolinks is all you need to do. With a Rails4 application the use ember-rails 0.13.0 we have a problem of not functional browser back button. Each time while getting back to previous route using the back button the application is crashing with such errors: on Firefox 24.0a2: TypeError: Class.PrototypeMixin.applyPartial is not a function @ http://localhost:3000/assets/ember.js?body=1:11933 on Chromium 28: Uncaught Error: jquery-ujs has already been loaded! jquery.js?body=1:517I DEBUG: ------------------------------- ember.js?body=1:364 DEBUG: Ember.VERSION

Ember.js with Rails4: browser back button crash ember application

让人想犯罪 __ 提交于 2019-12-01 01:21:49
问题 EDIT: the issue is solved. Removing turbolinks is all you need to do. With a Rails4 application the use ember-rails 0.13.0 we have a problem of not functional browser back button. Each time while getting back to previous route using the back button the application is crashing with such errors: on Firefox 24.0a2: TypeError: Class.PrototypeMixin.applyPartial is not a function @ http://localhost:3000/assets/ember.js?body=1:11933 on Chromium 28: Uncaught Error: jquery-ujs has already been loaded!