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

Emberjs + Rails: /api or respond_to?

I'm going to use Emberjs to an existing Rails app and itt have already some scaffold resources. In this guide I've read that is better to create a path like: "/api/posts" to handle request for emberjs. But I know that Rails responds to JSON if I…
sparkle
  • 7,530
  • 22
  • 69
  • 131
1
vote
1 answer

Ember creating a record different than the current controller

So I'm making a little toy ember app that will present a user with some improv prompts to create a comic strip out of. After a certain amount of time, the user will be able to upload their completed comic. I've got the whole thing working up to the…
DVG
  • 17,392
  • 7
  • 61
  • 88
1
vote
0 answers

ember-data: server side code for removing an associated object

I 'm working with revision 12 of ember-data RESTAdapter and using the rails-api gem. I have these models: App.TransportDocumentRow = DS.Model.extend, productName: DS.attr 'string' transportDocument:…
Alive Developer
  • 1,022
  • 1
  • 13
  • 25
1
vote
1 answer

ember.js difference routes folder and router.js file

I'm trying to make a project in rails and ember.js through the ember-rails gem. I made a rails generate ember:bootstrap and I'm observing the tree it created under assets/javascripts. I can't understand what is the difference between things I have…
Vecchia Spugna
  • 662
  • 4
  • 16
1
vote
2 answers

ember-rails & handlebars: specified templateName does not exist for one view, but does for all others

I'm working up an ember-rails app that precompiles Handlebars assets through the rails pipeline. Everything is updated to the latest versions via bundle update. When we load the index, the ember data is not rendered to the list, despite…
1
vote
2 answers

Uncaught TypeError: Cannot call method 'map' of undefined

I'm using ember-rails master and created a ember bootstrap project. Everything is empty and left as it was when creating, yet I'm running into the mentioned type error. when the router is entered. The namespace is known, but the router isn't. Has…
Rudi
  • 1,577
  • 3
  • 16
  • 42
0
votes
1 answer

How to create a route with a dynamic value in ember

I am new to ember. If u find my question silly please dont mind. I have a route '/lobby' which shows a different options. when user chooses one particular option i want to create route /lobby/option_choosen(this will be the value which user…
bjkpriyanka
  • 151
  • 1
  • 11
0
votes
0 answers

Ember - ember.debug.js:19746 Error: Failed to create an instance of 'adapter:application'

I am building an ember app and am attempting to connect to a rails API, to read in data from a questions end point. These are two separate applications. My Code is as follows: adapters/application.js import DS from 'ember-data'; import…
Steve_D
  • 545
  • 2
  • 11
  • 20
0
votes
1 answer

ember-rails Ember Inspector does not detect app

I'm using rails 4 with: gem 'ember-rails' gem 'ember-source', '2.0' ember-rails is at version 0.19 in my Gemfile.lock. I'm very new to ember (and javascript frameworks in general) and I'm following this tutorial. It was written in April 2014 so I…
SoSimple
  • 701
  • 9
  • 30
0
votes
1 answer

Debugging Rails 3.2 failing to precompile ember-rails 0.19

Looking for a way to determine where in my code or in the ember-rails/ember-rails-source this error is coming from. Using rails 3.2 and the latest ember-rails 0.19. When I precompile my assets I get this failure: Unexpected token: operator (!)…
0
votes
1 answer

Ember date belongTo with serialized id

App.Locale = DS.Model.extend language: DS.belongsTo("language") App.LocaleSerializer = App.ApplicationSerializer.extend attrs: language: { serialize: "id", deserialize: "records" } Using ember with rails as the backend. I am trying to…
ShivamD
  • 931
  • 10
  • 21
0
votes
0 answers

Ember Rails Components not working

I've created an Ember Component in my ember-rails app but it is not reading my main component js file for some unfathomable reason. I'm using my component like this.. # app/assets/javascripts/templates/comment.hbs

{{time-ago…

Evolve
  • 8,939
  • 12
  • 51
  • 63
0
votes
0 answers

Fetching ID from Select menu and saving record as one-to-many

I have been trying to fetch the id of this Select helper all day, and still noting but nil's and undefined... I just want the product_id to be set to the value in the Select which is being set fine in the template.... // Models Amber.Consumption =…
UnknownFrequency
  • 413
  • 3
  • 18
0
votes
2 answers

Ember-rails: function returning 'undefined' for my computed value

Both functions here return 'undefined'. I can't figure out what's the problem.. It seems so straight-forward?? In the controller I set some properties to present the user with an empty textfield, to ensure they type in their own…
UnknownFrequency
  • 413
  • 3
  • 18
0
votes
0 answers

Extending an Ember model with a custom variable

My Ember App has a Section Model. It has a 'name' field and I've extended it with a 'summary_of_changes' field. When I attempt to get the length of the name field all is good. Attempts to get the length of the 'summary_of_changes' field is…
Evolve
  • 8,939
  • 12
  • 51
  • 63