A framework for creating ambitious web applications.
See all
Members (2,535)

Stream

 
Hello everyone. I have one question related to Cloudinary and emberjs integration. We are using Ember-cli in our project and we want to do a direct browser upload to cloudinary. It would be great if someone can guide us.
Here is the link for our question on stack overflow
1
Add a comment...
 
 
Eduardo Figarola shares how to implement a simple sorting and filtering of a collection on an Ember.js application with his blogpost.
1
1
Matt Dragon's profile photo
Add a comment...
 
So I've been going through the Ember Guide on the website and I must admit that it is very confusing at times. It feels like it's jumping back and forth, e.g. in controllers section you talk about models a whole lot, even though models section comes after - so I may have no clue what model exactly is. I mean, I even did have a basic understanding of what a model was beforehand, but still find the controller section confusing very often - as the whole documentation.

But enough rant. I have a question - several times throughout the documentation it is said e.g. "for example, if you have a model named 'song', then you can do...".

How exactly do you name a model? Would this "song" model simply be something defined as App.SongRoute = Ember.Route.extend({ model: something}); ? Or is it something else?

And another thing is, in the Controller section, in  ObjectController part, you have setupController: function(controller, song) and then controller.set("model", song) in it.

1 - Where is this "song" coming from? (I guess this is similar to my first question)

2 - Why do I need to setup a controller here manually? Won't a SongController automatically look for the SongRoute model? Why do I have to set the "model" key on it?

Thanks!
1
Abdallah Deeb's profile photoBo Milanovich's profile photo
2 comments
 
Gotcha, thanks. Also read through the Model section and it made more sense then. But that brings me to my first point - about the confusing guides - since no where in the Controller section is it mentioned that models can be named in such a manner.
Add a comment...
 
I want to store my data locally if my device is offline and push them to the server when my device is connected. I'm using Ember.js + Cordova. Your help is welcome!
1
Will Holcomb's profile photo
 
I am working on a couple Ember apps backed by CouchDB. Couchbase Lite runs under Android or iOS and will do master/master replication with Couch servers.

I'm currently learning Ember, so things are still in development, but the most complete app is probably my habit tracker: https://github.com/wholcomb/habit_tracker It demonstrates how to configure ember-couch-kit to access the Couchbase instance.
Add a comment...

Jamie White

Discussion  - 
1
Add a comment...
 
How to go with the flow with Ember.js
12
2
Jon Kirkman's profile photoThorbjørn Hermansen's profile photo
Add a comment...

Ian S

Discussion  - 
 
I go between love and hate with Ember. On one hand the speed is unbeatable and this is perfect for large web apps. On the other hand the ember handlebars are all but perfect, deciding not to work with certain DOM elements, despite Ember's claim that handlebars compliment all HTML. Also Ember debugging doesn't explain a fraction of what it should. Only receiving errors from ember.js file doesn't tell me anything or point to what to fix. Even worse, the file it directs me too has been condensed into one long line & All errors will point to the same line.
3
Ian S's profile photoMartin Genev's profile photo
17 comments
Ian S
 
I turned some of them into stackoverflow questions but I probably will get more accurate information from github. Thanks for the advice
Add a comment...
9
1
mohammed sadiq's profile photoEdditoria Yo's profile photoTyler Kern's profile photo
2 comments
 
+Brian Cardarella  Thanks for this great post!
You post inspire me a lot on creating front-end application!
Add a comment...

About this community

Members of the Core Team will sometimes be around on this forum, but for best results, check out Discourse or StackOverflow.
 
Hello everyone! I've stacked with one bloody problem that tortured me in the past and have returned recently - saving relationships with Ember Data. Is there a really proper way?
1
Vladimir Katansky's profile photo
6 comments
 
It seems like I've found the answer at last!:) And your answer was the focus point - thanks a lot! But it only helps with relationship with 1 model 
Add a comment...
 
Hi embers,

Yesterday the Ember's Core Team have been released a new version 1.6 of EmberJS. Now, this version offers minimal support for AMD. Great job!

Regards.
2
Add a comment...
 
Hi guys! I created a library for delegate properties in any Ember objects, the library follow the Ruby delegate styles. Please check it and return feedback https://github.com/zzarcon/ember-delegations
1
Add a comment...
 
A Thorough Guide to Ember Data
8
2
Esteban Arango Medina's profile photoRashid Omar's profile photo
Add a comment...

meng zhou

Discussion  - 
 
The application object equal to struts's action servelet,and route equal to struts's config xml file.
1
Add a comment...
 
Building an Ember App with Rails & ember-cli Part 4
3
Add a comment...

Neuber Oliveira

Discussion  - 
 
Hello folks,
I started with ember a few days and was a bit confused about somethings, the problem i want to fix first is:

Following the guide and adapting to my needs i ended up with this routes:
PP.Router.map(function() {
this.resource('index', { path: '/' });
});

PP.IndexRoute = Ember.Route.extend({
model: function(){
return this.store.find('category');
}
});

One model:
PP.Category = DS.Model.extend({
parent_id: DS.attr(),
name: DS.attr(),
classname: DS.attr(),
sprite: DS.attr(),
});

When i access the index page ember load the data from webservice perfectly, something like: http://localhost/myapp/api/category

My problem is i need to make a request to this URL: http://localhost/myapp/api/category/roots

This url return only the root level categories, so, how can i achive this?
I cant find a away to make a custom request or something like that.

EDITED
To clarify better i need to request these URLs:
http://localhost/myapp/api/category (all categories)
http://localhost/myapp/api/category/:id (single category)
http://localhost/myapp/api/category/roots (only categories roots)
http://localhost/myapp/api/category/children/:id (chidrens of category :id )

Thanks
1
Konstantin Tsabolov's profile photoNeuber Oliveira's profile photo
2 comments
 
Works in part, i updated the question to clarify
I need to request these URLs

http://localhost/myapp/api/category (all categories)
http://localhost/myapp/api/category/:id (single category)
http://localhost/myapp/api/category/roots (only categories roots)
http://localhost/myapp/api/category/children/:id (chidrens of category :id )
Add a comment...

Jamie White

Discussion  - 
 
The Ember London May meetup is next Wednesday (21 May). Talks on Broccoli, Web Sockets and Box 2D. See you there!
1
Add a comment...