Ruby on Rails
Saturday, May 26, 2012
On Saturday, May 26, 2012 4:45:13 PM UTC-4, Colin Law wrote:
On 26 May 2012 21:39, Vell <lovell.mcilwain@gmail.com> wrote:
>
>
> On Saturday, May 26, 2012 12:07:33 PM UTC-4, Colin Law wrote:
>>
>> On 25 May 2012 22:57, Vell <> wrote:
>> > 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.
>>
>> First check the html is valid by copy/paste the complete page source
>> (View > Page Source or similar in your browser) into the w3c html
>> validator. If that is ok then run firebug in firefox and you should
>> be able to see whether the css is there.
>
>
> Thanks for the response Colin. I ran my code for the form
> through http://validator.w3.org/ and it stated that my code passed. When I
> launch firebug while i have that page loaded, firebug says that there are no
> rules in the stylesheet. But again when I look at my html source all of the
> stylesheets are loaded though none of them don't have anything in them aside
> from the one that I have started editing.
Could you pass that through a validator and try again? I am not sure
what you meant to say. You say that firebug says there are no rules
in the stylesheet, but then go on to say that they are empty, so it is
not surprising that there are no rules.
Could I pass the html of the form that I am trying to render the css through the validator again? Yes I could do that. Or do you mean put the css file into the validator?
Sorry for the confusion about what I was trying to say. What I was attempting to say is that, all of the css.scss files are all empty aside from the one .css.scss file that i am trying to render in my form. So right now I am working on my user registration form and so I am writing my css in the users.css.scss file. That is the only one that has any content in it at this moment. But since the layout is loading the application.css file and that file is calling require_tree . the users.css.scss file should have been loaded and the css should have shown up on the page.
So at this moment the #user_nav css that I am calling on a div in the application layout that is supposed to position some links to the right of the browser page are showing to the left as if there wasn't any css at all.
--
Colin
>>
>>
>> Colin
>
> --
> 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/-/ .x2nQRmHL5oAJ
>
> To post to this group, send email to rubyonrails-talk@googlegroups.com .
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en .
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/-/iFncgxOL1psJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment