Topic: mobile device - assets

Hi,
im my current app im loading stylesheets based on the controller

#application.html.erb
<%= stylesheet_link_tag params[:controller] %>

#tests_controller loads:
/assets/test.css

/* This is a manifest file ....
 *= require test
*/

now i setup some mobile routing to use custom mobile views:

views_mobile/layouts/application.html.erb uses

<%= stylesheet_link_tag "mobile/" + params[:controller] %>

view source in the browsers  shows  /assets/mobile/test.css. this seems to be correct. the issue is that the file is always empty. that means the manifest file is not getting loaded for some reason  "require XXX" doesn't work

any hints would be helpful

thanks!

pete

Last edited by bg000331 (2012-08-22 07:22:06)

Re: mobile device - assets

Are you including the "manifest" css file in your head? Or only the mobile css file?

Remember to edit your topic title and add "[SOLVED]" if your question has been answered!

Follow me!