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
0
votes
0 answers

Integrate multiple layout with ember rails

My Rails App has multiple layouts, which correspond to different controller. How could I integrate it with ember rails ? I have no idea.Please give me some direction, thanks.
newBike
  • 14,385
  • 29
  • 109
  • 192
0
votes
1 answer

why should I use 'plurals' in RESTAdapter

According to ember-part-2, We should define the the plurals for model ? why ? MVC's feature is convention over than configuration, Why should I do it, and for what ? app/assets/javascripts/models/store.js.coffee DS.RESTAdapter.configure("plurals",…
user3675188
  • 7,271
  • 11
  • 40
  • 76
0
votes
1 answer

Naming conventions when creating a component in ember-rails

I'm creating my first ever component but most tutorials are assuming Im not using ember-rails. As I understand it, a component needs to extend Ember.Components and also have it's own template and both need to be named correctly then it can be used…
Evolve
  • 8,939
  • 12
  • 51
  • 63
0
votes
1 answer

Why ember needs Route ? or why it called route

I'm new to ember js. I'm confused about why there is already has a Router to map the url request to a dedicated resource, and there are still exsisting route for each resource. For example, http://{SITE}/product will redirect to product resource,…
newBike
  • 14,385
  • 29
  • 109
  • 192
0
votes
1 answer

emberjs not showing view

I am just starting to learn ember.js and I am trying to integrate it into an existing rails application. I am using the ember-rails gem and everything looks OK except that my template is not showing up when I call {{outlet}} in rails view. Here is…
Josh Moore
  • 13,338
  • 15
  • 58
  • 74
0
votes
1 answer

ember-rails not loading hasMany Association

Gems Used: Using ember-source (1.5.1.1) Using ember-data-source (1.0.0.beta.7) Using ember-rails (0.15.0) Using handlebars-source (1.3.0) Using active_model_serializers (0.8.1) This is the ember app code: window.App = Ember.Application.create …
Rodrigo
  • 5,435
  • 5
  • 42
  • 78
0
votes
1 answer

ember with rails sending requests to the wrong controller action

I have model in my rails application by the name Request. Now I have integrated Ember inside a particular route in my application not the whole application, not sure if this is relevant information but giving it out anyway just in case. This is my…
Aravind
  • 1,391
  • 1
  • 16
  • 41
0
votes
1 answer

Ember-Rails - Error Setting up Fixtures Adapter

I'm new to Ember, and I'm trying to build on a Rails API; however, I don't want to turn on the RESTAdapter at this point. It does not look as if the Fixture adapter is loading data as expected, and I'm not sure why. I haven't done much but run the…
NelsonW
  • 64
  • 1
  • 8
0
votes
1 answer

Ember.js flat route structure vs. mess in root templates dir

Using flat route (if a view has to be displayed in a separate view) structure solves many problems and helps to avoid unnecessary code, but all templates in a root template dir are more than mess: For example: (using…
wryrych
  • 1,765
  • 4
  • 20
  • 31
0
votes
1 answer

Ember js Issue with If condition

I am totally new in Ember in framework, and in one task stuck up. I have an array of dates like ["2014-03-15T12:30:00Z", "2014-03-14T12:30:00Z", "2014-03-13T12:30:00Z", "2014-03-05T02:30:00Z", "2014-03-04T12:30:00Z", "2014-03-04T12:30:00Z",…
Jeet
  • 1,350
  • 1
  • 15
  • 32
0
votes
1 answer

where does inflectors go using ember rails

ember version: * @version 1.4.0 ember-data Version: v0.14 In my store.js DS.RESTAdapter.reopen({ namespace: "api/v1" }); Lost.Store = DS.Store.extend({ revision: 14, adapter: DS.RESTAdapter }); Works fine for me. when i route into…
Rigel
  • 882
  • 1
  • 11
  • 32
0
votes
1 answer

how to get record count of nested model in Ember.js

I'm building my first rails/ember app, researching with various sources from tutorials and ember documentation. However, I've hit a wall and after alot of digging, I'm still unable to find the answer I'm looking for. Currently, I'm building a…
user2668042
  • 103
  • 1
  • 2
  • 6
0
votes
1 answer

Ember.js find() returning only one item

I've set up an API and am trying to use the Ember.js DS.RESTAdapter to get and iterate through all the records in a table. At the moment it's partially working, but instead of getting all of the records I'm getting only one (the last record to be…
Graham
  • 463
  • 1
  • 5
  • 12
0
votes
1 answer

ember.js, rails, rails-ember, rabl

Getting weird issue with ember.js: TypeError: Object Status has no method 'eachRelatedType' at DS.JSONSerializer.DS.Serializer.extend.configureSideloadMappingForType (http://localhost:5000/assets/ember-data.js?body=1:7798:10) at…
Rtype
  • 886
  • 11
  • 32
0
votes
1 answer

Ember.js not sending data to the template/view in a Rails app

I am learning Ember.js as we speak and what I am trying to do is to integrate it into a Rails application (vanilla app, just for playing around), since most of the time I'm working with Rails. So far so good, I managed to install it (I am using…
user3187443