Questions tagged [ember-rails]

ember-rails allows you to include Ember.JS into your Rails 3.1+ application.

The gem will also pre-compile your handlebars templates when building your asset pipeline. It includes development and production copies of Ember.

Project on github: https://github.com/emberjs/ember-rails

82 questions
1
vote
0 answers

Ember-Rails gem in production on Heroku

I am using Ruby On Rails 4 and Ember-Rails gem. Everything works fine in development. In production deploying on Heroku, I get this particular error initializer.initialize is not a function and routes/templates aren't rendering.
envymike
  • 155
  • 2
  • 7
1
vote
0 answers

Ember 2.0 upgrade errors: Unexpected strict mode reserved word & handlebars precompile error

I'm trying to upgrade an ember-rails app from ember v1.13 to v2.0. The app loads and templates render in ember 1.13 and there are no deprecations coming through to the console. When I bump the version to 2.0.0 (through the ember-source gem), the app…
Josh Paul
  • 83
  • 2
  • 7
1
vote
1 answer

ember-rails Ember Handlebars requires Handlebars version 2.0

I am trying to get a simple app runnning based off http://ember.vicramon.com/chapters/all I haven't even begun my app; all I have done so far is: generate using rails new rails g ember:bootstrap -n App --javascript-engine js rails g ember:install…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

Ember Rails back button doesn't render template even without nested routes

I am trying to get a simple Ember-Rails app, and everything seems to render fine, but the back button completely removes all rendered elements. With no errors. From what I understand so far, this happens because Ember expects the 'parent' template…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

error while loading route: - why am I not retrieving data form rails?

I'm trying to set up the basics of an application using Ember on Rails, and I'm getting this error: Error while processing route: posts It would be helpful if Ember said something about the error, but it hasn't. Here is the code in question (I…
Darshan
  • 937
  • 3
  • 15
  • 27
1
vote
1 answer

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

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…
Evolve
  • 8,939
  • 12
  • 51
  • 63
1
vote
1 answer

How to clear a new record from ember.js frontend after it fails Rails validation (422 error)?

I'm working on a basic reddit clone app with Rails and ember.js (via the ember-rails gem). Basically I have a 'post' model/controller in Rails which works correctly, but when I add a new post from the ember post model's create action, even if it…
etdev
  • 524
  • 3
  • 12
1
vote
1 answer

What am I missing from my initial attempt at getting default routes to work in ember?

Currently, the console says none of the templates can be found, and yet, when I console.log Ember.Templates, they are all there. What is going on? I've been googling for hours. (I'm new to ember, so, I'm probably searching incorrectly due to not…
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352
1
vote
1 answer

Ember-Rails "Cannot read property 'extend' of undefined"

I'm using Ember-Rails to build an Ember front-end app with a Rails API for a beckend. I've been working on implementing authentication, and I arrived at the following error: Cannot read property 'extend' of undefined when trying to extend a route as…
1
vote
1 answer

Ember-rails not working on heroku

I am using a Rails API to return JSON that I then use in my Entity model in an Ember app. While this works fine on localhost it is not working when I deploy the app to Heroku; it shows this error on the console: "Error while loading route:…
Vinay Raj
  • 11
  • 1
  • 4
1
vote
0 answers

how to get image url in ember using active admin gem

rails gem. I have add active admin gem to the app. When i add image to a product model in active admin it gets uploaded but when i make a call to model the image attr looks like [Object Object] in ember inspector. How can i display image or get…
Rigel
  • 882
  • 1
  • 11
  • 32
1
vote
1 answer

ember-rails upgrading emberjs version confusing tmp folder

I am new to both rails and emberjs I want to try query params which is availble in newer emberjs builds. so I did rails generate ember:install --channel=canary in my vendor folder is saw updated emberjs file version * @version …
Rigel
  • 882
  • 1
  • 11
  • 32
1
vote
1 answer

Ember throwing error when hitting the browser's back and forward buttons

I have the following routes: Redb.Router.map ()-> @resource "forms", -> @route "new" @route "show", path: "/:form_id" I have associated templates and controllers. Using links generated by link-to helper, everything works fine, but, for…
Omid Kamangar
  • 5,768
  • 9
  • 40
  • 69
1
vote
1 answer

Emberjs Inflector for pluralization

I have used ember inflector Ember.Inflector.inflector.rules.uncountable['quiz'] = true; var inflector = Ember.Inflector.inflector; inflector.irregular('quiz', 'quizes'); QuizAPP.Store = DS.Store.extend({ revision: 11, adapter:…
Shrikanth
  • 301
  • 4
  • 13
1
vote
2 answers

Adding item to ember-data store prevents application template from rendering

I have a following route definition in my ember-rails project. The file is /app/assets/javascripts/routes/applicationRoute.js.coffee and the code is as follows: ChAdmin.ApplicationRoute = Ember.Route.extend ( model: ()-> store =…
Jukka Puranen
  • 8,026
  • 6
  • 27
  • 25