On Friday, May 25, 2012 6:25:59 PM UTC-4, Tyler wrote:
>
> Also if you have recently run "rake assets:precompile" (e.g. for Heroku
> deploy), that will take precedence. In that case run "rake assets:clean"
> and clear your browser cache after each deploy.
>
> Thanks for your response Tyler. I never ran rake assets:precompile. I
didn't think I needed to run that in development mode. This app has never
been deployed anywhere and so far has only been run in development mode. Do
I need to run rake assets:precomplie even in development mode to get my css
to work?
>
> On Friday, May 25, 2012 3:07:56 PM UTC-7, Kleber Shimabuku wrote:
>>
>> Hi,
>>
>> Are you using cache? Try to clean up your web browser cache.
>>
>>
>> Em sexta-feira, 25 de maio de 2012 18h57min04s UTC-3, Vell escreveu:
>>>
>>> Hello all,
>>>
>>> I have been struggling all day with getting css files to load in my
>>> application. I am attempting to use the rails-ui-themes gem to help style
>>> my application but right now just getting simple css code to render is not
>>> working.
>>>
>>> I have tried removing the require_tree and including the file
>>> individually and it still does not seem to work. When I look at the source
>>> of my html, every css file is loaded including the application.css file but
>>> nothing seems to happen.
>>>
>>> I was wondering if anyone can tell me what I am missing.
>>>
>>> At this moment here is what I have as my configuration:
>>>
>>> app/assets/stylesheets/application.css:
>>>
>>> *= require_self
>>> *= require_tree .
>>> *= require jquery-ui/overcast
>>>
>>> layouts/application.html.erb:
>>>
>>> <%= stylesheet_link_tag "application", :media => "all" %>
>>> <%= javascript_include_tag "application" %>
>>>
>>> some css I have tried to render:
>>> <div class='ui-corner-all'>
>>> .....
>>> </div>
>>>
>>> or
>>>
>>> <div id='user_nav'>
>>> ....
>>> </div>
>>>
>>> The simple css that I tried to render is
>>>
>>> #user_nav{
>>> float: right;
>>> font-size: 12px;
>>> }
>>>
>>>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/ZR-S-X6tc_wJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.