from past attempt I where I set the backend up to accept both id or slug, I think an issue cropped up where ember would sometimes have 2 duplicate records where one was represented by id and one by slug
locks
holler: there is no way
because ember has no way to map a slug to an id
annlewis joined the channel
holler
is that a pretty common use case? feels like it would be
problem is I might have really long slugs in some cases.. doesnt seem ideal to use that as a db lookup
so somewhere it has to be mapped
locks shrugs
locks
have some mapping in your backend :P
holler
hrmrm damn
locks
if it's indexed I don't see why the size would matter that much
holler
I wonder if there is a way to use id but somehow change the location hash
immediately
locks
no
holler
I guess that is issue though on refresh
locks
yup
holler
rawr
ok so I will need to use slugs throughout I guess
dont see any other way around that
locks
yup
holler
will see where I get.. thx
chadwtaylor has quit
ivanskie joined the channel
annlewis has quit
allcentury has quit
NullVoxPopuli has quit
woodbeen has quit
adamesque has quit
GriffinHeart joined the channel
juanpablo______ joined the channel
kololololol joined the channel
thejchap has quit
skoryky has quit
artto joined the channel
artto has quit
keimlink has quit
kellysutton has quit
mikebonar has quit
kyledavis joined the channel
bmac joined the channel
kyledavis has quit
hilem joined the channel
hilem has quit
kyledavis joined the channel
kellysutton joined the channel
allcentury joined the channel
skoryky joined the channel
skoryky has quit
rpkilby joined the channel
ivanskie has quit
bmac has quit
hilem joined the channel
shama has quit
kyledavis has quit
annlewis joined the channel
annlewis has quit
CIDIC has quit
holler has quit
vampolo joined the channel
iamse7en joined the channel
juanpablo______ joined the channel
mattwiebe joined the channel
juanpablo______ has quit
kololololol has quit
artto joined the channel
kellysutton has quit
artto has quit
vampolo has quit
Bomber has quit
trevor has quit
plumbacon has quit
kellysutton joined the channel
bmac joined the channel
dixon joined the channel
zeff has quit
plumbacon joined the channel
pzuraq joined the channel
rhyek joined the channel
mikebonar joined the channel
mikebonar has quit
rhyek
hey guys. i'm using ember-cli, i've set locationType as hash in environment.js, yet when i try to access a server resource directly in the address bar without using a hash before the url path, it seems ember is still loading. i have my api on the same host/port as the ember app atm.
i have an api endpoint that returns images based on an id. if i embed an <img> in a template with a url such as http://localhost:4200/api/image/234, the image is displayed. but when i open up a new window and set that same address, the ember app loads instead of the image.
btw, i've set ember-cli proxy to an asp.net webapi running on a different port than 4200
alexspeller
rhyek: are you using the proxy option?
rhyek
alexspeller: yes
alexspeller
rhyek: sounds like a content type issue - your browser will request html not an image because there is no extension in that url
brguy has quit
rpkilby has quit
knownasilya has quit
kololololol joined the channel
rhyek
i suppose you're right. when loading the index of images, where i have <img> tags, those requests are being sent with Accept: "image/png,image/*;q=0.8,*/*;q=0.5"
shinnya has quit
alexspeller
rhyek: the ember cli proxy behaviour is not that advanced
rhyek: how will you be serving your api in production?
rhyek
well, currently i'm still in heavy development even though the app is already running in production. atm i'm running ember-cli on the production server until i figure out a better way