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
15
votes
1 answer

Circular Dependency Error in Rails 4 during Rspec Request Specs

I have an app running on Rails 4 / Ruby 2. The frontend is being developed with Ember. When running rake spec, I'm getting the below exception. It seems to only happen in Rspec feature specs (not in dev mode). Also, it usually only happens if I run…
9
votes
1 answer

Ember-Rails and namespaced templates

I have a Rails app that is namespaced into three sections (almost 3 apps that share models). I would like for each namespaced section to have it's own Ember app. These apps are never loaded in the same layout so don't have to know anything about…
ootoovak
  • 1,063
  • 9
  • 17
7
votes
1 answer

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

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…
chrmod
  • 1,415
  • 12
  • 19
7
votes
1 answer

Nested routes in Ember JS and Ember Rails

Can someone explain in layman's terms the way nested outlets work in ember templates? In particular trying understand this from the docs: http://emberjs.com/guides/routing/rendering-a-template/ "The immediate parent route did not render into the…
Gordon Potter
  • 5,802
  • 9
  • 42
  • 60
7
votes
2 answers

Many to Many Relationships with Ember, ember-data and Rails

I am having an issue with trying to save many to many relationships in Ember.js using ember-data and rails. The association works fine on the ember side of things, however when I try to commit the transaction it will not include the list of new…
7
votes
1 answer

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

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…
doublea
  • 2,546
  • 1
  • 23
  • 35
6
votes
1 answer

Ember Routes and Rails Routes

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…
Brian McDonough
  • 13,829
  • 4
  • 19
  • 23
5
votes
2 answers

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

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…
Aaron Renoir
  • 4,283
  • 1
  • 39
  • 61
5
votes
1 answer

Emberjs + Rails - TypeError: Cannot call method 'hasOwnProperty' of undefined (Unable to POST to Rails DB)

I am trying to POST a new record into Rails db with Emberjs and ember-data; however I am getting the following error: TypeError {} "Cannot call method 'hasOwnProperty' of undefined" I have been following the example of…
Bryan Wong
  • 145
  • 1
  • 11
4
votes
3 answers

Detect URL change and grab URL in EmberJS (using Discourse)

I'm using Discourse (http://www.discourse.org/), which is built on EmberJS, and trying to observe any time the URL changes, e.g. when opening a new topic. I've seen the answer for observing the currentPath, for example here: Detect route transitions…
kaptron
  • 477
  • 5
  • 12
4
votes
1 answer

using an ember-rails handlebars template outside the context of an ember view

I have a rails app that is using the ember-rails gem. There is a section of my site that is not on ember, but where it would be convenient to use one of the handlebar templates served via the asset pipeline. However, something seems to be going…
earnold
  • 1,440
  • 1
  • 15
  • 26
3
votes
1 answer

Rails fails precompile with ember-template-compiler

After upgrading to Ember.js 1.13.2 from 1.10.beta4 we are no longer able to precompile Handlebars templates which have deprecation warnings in production. Please see the error and traceback for rake assets:precompile below. Oddly, we don't get any…
dobe
  • 31
  • 4
3
votes
1 answer

Passing hidden parameters between routes

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…
Jeet
  • 1,350
  • 1
  • 15
  • 32
3
votes
1 answer

Odd EmberJS Precompile Error: Expecting 'ID', 'DATA', got 'INVALID'

I'm building a very simple Ember-Rails example app and I'm running into an odd precompiler error. This is what the basics of the app looks like. Here's the application_controller.js.coffee: Hitch.ApplicationController = Ember.Controller.extend …
dshipper
  • 3,489
  • 4
  • 30
  • 41
3
votes
3 answers

Possible to use application outlet when using nested routes?

I have an app based on Posts. When I nest the routes like this: this.resource('posts', function() { this.route('post', {path: ':post_id'}); }); and try to access the /posts/id link it would only render the template if I place an {{outlet}} into…
Pan Wangperawong
  • 1,250
  • 2
  • 13
  • 29
1
2 3 4 5 6