Hey guys, what is the current best way to rollback a relation?
shredding joined the channel
pogopaule has left the channel
keptek joined the channel
gmurphey joined the channel
gannetson has quit
bogdanbalc_ joined the channel
bogdanbalc has quit
bogdanbalc_ is now known as bogdanbalc
ericchernuka joined the channel
chadwtaylor has quit
darrin has quit
bogdanbalc_ joined the channel
bogdanbalc has quit
bogdanbalc_ is now known as bogdanbalc
_lazarevsky
hey guys
I have a project model and a project hasMany orgProjects
when the page first loads the project only has orgProject
yeabuddy joined the channel
I add, using ajax call
yeabuddy has quit
send a POST request to the backend
to add 2 more orgProjects
and the backend returns plain JSON
esopian joined the channel
rchavik has quit
bantic joined the channel
and then I say self.store.pushPayload('orgProject', res)
Using the Ember debugger I can confirm that the two newly added orgProjects were added to the store
the orgProjects have the correct projectId
however, when I say project('orgProjects') it only shows 1 orgProject
it's not registering the newly added ones even though the store has been updated with the new orgProjects
what gives?
darpa1 joined the channel
darrin joined the channel
mupkoo
You can try specifying the inverse options to your relations, though I am not sure if it would help
bkaney joined the channel
ryanrauh joined the channel
roddy_ joined the channel
E14n joined the channel
chrislopresto joined the channel
ryanrauh has quit
ryanrauh joined the channel
lolmaus has quit
gmurphey has quit
michaelbenin joined the channel
munumnu has quit
darpa1 has left the channel
michaelbenin has quit
E14n
With a rails backend, whats the best way to handle authentication of a file download link? I am guessing there isn't a way to get token based authentication to work?
michaelbenin joined the channel
I had a look on stack overflow but could only find recommendations to not authenticate.
edude03 joined the channel
alvinv joined the channel
lolmaus joined the channel
Glador joined the channel
wicope joined the channel
MartinElvar has quit
alex_diliberto joined the channel
hpoydar joined the channel
gentlemaverick joined the channel
hyperlink has quit
mrbubbles joined the channel
hyperlink joined the channel
darpa11 joined the channel
nickbytes joined the channel
mrbubbles
hi guys, I was just reading through a tutorial here for using ember with rails : http://kbarrett.com/blog/2014/03/24/authenticat... However, I’ve noticed that he doesnt’ seem to be using token-based signin…?
darpa11 has left the channel
Glador
Hey, i am having problems with observers what i am doing wrong :http://jsbin.com/goviyamemi/1/edit?html,js,console,output
nickbytes has quit
bbankes has quit
mupkoo
mrbubbles: jwtoken authentication is not hard to implement and I think it's better to use the Ember CLI approach for new ember project. Take a look at this gem - https://github.com/rwz/ember-cli-rails
jmeas has left the channel
ur5us joined the channel
SaladFork joined the channel
orough
Glador, if you change to just column.title it works so the error is perhaps with your nested objects
hi, i'm a beginner with ember and I'm trying to implement an autocomplete function
SaladFork has left the channel
gmurphey joined the channel
but i don t understand where I have to put the jquery code... in the controller ? in a view ?
dcherman joined the channel
if anyone has an idea ?!
SaladFork joined the channel
Glador
@mupkoo Thx: ) i thought @each was only for arrays like property
mupkoo
Do be able to use the `didInsertElement` hooks, you have to add them to the View. But it's best if you create a Component (it's like a controller and view in one)