Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jose Carrion's Profile

GitHub User: joselo

Site: http://www.nationcode.com

Comments by Jose Carrion

Avatar

I'm wondering how can I load a SelectBox using a restful resource.

coffeescript
Directjobs.CategoryListView = Ember.Select.extend
  contentBinding: "Directjobs.CategoriesController"
  optionLabelPath: "content.name"
  optionValuePath: "content.id"

However it does work, I'm not sure if I have to load the content to the controller first, because I have the route in this way.

coffeescript
Directjobs.Router.map (match) ->
  @route 'entries', path: '/'
  @resource "categories", path: '/categories'


Directjobs.Router.map (match) ->
  @route 'entries', path: '/'
  @resource "categories", path: '/categories'

Any Ideas?

Avatar

I've been using ElasticSearch it's going fine, but I'm wondering if it's possible make 'operations' I mean for example how can I get the average or plus two values etc. ?? I'm not sure if can I do this using Tire??

If does anyone knows any solution I really appreciate

Thanks!!