intellij idea - Play 2.x Static assets not found -


i not sure why public assets not being discovered play. using same code works in activator template in play2 intellij project.

the routes

# map static resources /public folder /assets url path    /assets/*file       controllers.assets.at(path="/public", file) 

and html

<img src="@routes.assets.at(s"images/foo.png")" width="64px"> 

seem correct, , foo.png in public/images folder. inspector highlights images/foo.png in html "cannot find" message. seem being compiled, correctly placed in target directory. rest of app , html working fine

what possible explanation this?

try:

@routes.assets.versioned("images/foo.png") 

honestly, have no idea why know works me.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -