can somebody help out a noob? I'm doing the V1.10.0 Getting Started walkthrough on http://guides.emberjs.com/v1.10.0/getting-started/ - I'm at 'adding child routes' and I have no errors, but the list of todos is no longer displaying. Using the ember debugger, I can see that new todos are added to the model data, but they do not display.
I am trying to upgrade to Ember 1.11 and seeing something odd. I have an Ajax request which fails, but with a `catch` to get the error gracefully. It seems to trigger the RSVP default error code in testing mode, even though I catch it
Shouldn't that error code only fire if I don't catch it?
nana_ has quit
ryanrauh has quit
Criten
Are there any examples of ember-validations in the wild?
ryanrauh joined the channel
roddy_ joined the channel
SomeKittens joined the channel
mellatone joined the channel
EvilTrout__
oh it might be my upgraded jQuery... hmmm
keimlink has quit
Criten
EvilTrout__: I just had a problem downgrading due to jQuery.. so that mgiht be it
samselik_ has quit
but in my case my problem was solved by upgrading jquery while downgrading ember... so that was weird
roddy__ has quit
EvilTrout__
looks like Discourse's custom ajax was not bubbling the correct up to ember
hmmm now that it bubbles my test still fails though
ryanrauh has quit
lolmaus_ has quit
hjr3 has quit
Criten
EvilTrout__: Have you ever used ember-validations? I have no clue what i'm doing wrong.
EvilTrout__
Criten: nope sorry
Criten
EvilTrout__: was it because of jquery?
wallerdev joined the channel
EvilTrout__
no, I wasn't getting the correct error, but I am and still the default error callback is happening before my catch
shama joined the channel
aroberts has quit
Criten
This is going to kill me haha....
GreenCoal
borodin: how are you altering the model? Be sure to use methods that notify ember observers about the change. E.g: use 'pushObject' instead of 'push'
Criten
What do you guys do for form validation?
just implement it yourself?
Linuus has quit
dandehav_ joined the channel
MikeClassic joined the channel
aroberts joined the channel
dandehavilland has quit
jakemauer has quit
jpadilla joined the channel
dadamssg
is it possible to change a route's controller based on the model?
erpuds joined the channel
gmurphey has quit
erpuds has quit
KerrickLong joined the channel
Guest38 joined the channel
edude03 has quit
ryanrauh joined the channel
devinus joined the channel
docster joined the channel
thejchap joined the channel
nana_ joined the channel
Grapho
is there anything wrong with a component that has a <three-part-name> ? do the emerging standards say anything about that?
nsutt joined the channel
zmaakc joined the channel
zmaakc is now known as zakmac
ForSpareParts has quit
KerrickLong has quit
nsutt_ has quit
gmurphey joined the channel
nana_ has quit
aroberts has quit
nana_ joined the channel
TAsn joined the channel
TAsn
Hey guys. I'm trying to fix my server to return the correct replies for RESTAdapter (it's django tastypie based), is there any server I could look at for the correct replies? Or any ways to better debug why ember is rejecting my semmingly correct replies? Thx.
Guest38 has quit
clov3r
TAsn: can you provide a sample of what your server is returning now?
mellatone has quit
TAsn
what it's returning now is of no matter, as I've changed it so many times in the last few hours trying to figure out what I was doing wrong, that I no longer know which way is up. :)
zakmac
Well, TAsn, it's kind of hard to do anything besides point to the docs without an example of what's been/being tried
TAsn
zakmac, I'm not looking for help, I'm looking for a reference. (though help is appreciated)
erpuds joined the channel
does restadapter conform to jsonapi.org correctly?
i want to this.store.find("mymodel", someParam: "value") while retreiving only a single object
ForSpareParts joined the channel
pesokat has quit
TAsn
clov3r, thx, I'll take another look there. Btw, while I'm here. I forgot and I can't find it anymore, how can I turn off infliction entirely? There was a way to set a custom inflictor that does nothing, can't remember how though.
erpuds has quit
ohcibi
my code worked with this.store.find("mymodel", "value"), but I recently found out that this will push a new record with an id of "value" into the store which completely breaks the app, so I though easy just use find with a query param but this wont work either as I know have an array of records and not a single record
jacaballero joined the channel
clov3r
@ohcibi, I don't know, but I want to do this too ;)
so if you figure it out, ping me ;)
devinus has quit
samselikoff joined the channel
ohcibi
i just found a stackoverflow answer that tells to .then(function(result) { result.get("firstObject"); }) oO
i even think that the record with id "value" is a bug
pesokat joined the channel
because the servers response has another id and ember-data should just use what the server responded
kurko_
locks why do you ask? Ids are generated in adapters I guess. I didn't implement that part, I inherited it. Would you rather have just the DS store generating the ids instead?
Grapho
do the new ES6 arrow functions still need brakets? (args) => { //things happen } ?
SaladFork`
Grapho -- brackets are needed for multiple statements
Grapho
ok
SaladFork`
Grapho -- note that no brackets means an implicit return
so one line returns.. no brackets.. and multi statements/no implicit return.. yes brakets ?
TAsn
{"player": {"id": "1", "name": "tom"}}
Criten
So i'm trying to include a mixing (ember-validations) and I think i'm including it correctly.. but while debugging i stuck a debugger in the init of the mixin and it never fires... so i'm not sure what i'm doing wrong. https://gist.github.com/Criten/b3be935c9585a9aa...