# StyleSheets on Ruby on Rails

**URL:** <https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494>\
**Category:** Rails\
**Created:** [October 1, 2009, 9:53am UTC](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494 "2009-10-01T09:53:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![metdos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e495f1/32.png) [@metdos](https://www.ruby-forum.com/u/metdos)\
**Post date:** [October 1, 2009, 9:53am UTC](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494/1 "2009-10-01T09:53:40Z")

</div>

I’m making some changes on Redmine Project on my local, I need to  
alter appearance, so I changed application.css, then I realized that I  
need changes in only some views, so let application.css to be same,  
but I copy my modified version to applicationNewIssueForm.css and I  
added  
\<%= stylesheet\_link\_tag “applicationNewIssueForm” %\>  
to views which I want to change.  
Unfortunately appearance of my views are not same where I used  
applicaition.css as defult and I added \<%= stylesheet\_link\_tag  
“applicationNewIssueForm” %\> although they are identical.  
What causes this problem?  
Thanks.

---

<div class="post-metadata">

**Author:** ![metdos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e495f1/32.png) [@metdos](https://www.ruby-forum.com/u/metdos)\
**Post date:** [October 1, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494/2 "2009-10-01T16:39:21Z")

</div>

Hi,

On Wed, 2009-09-30 at 23:15 -0700, metdos wrote:

> so let application.css to be same, but I copy my modified version  
> to applicationNewIssueForm.css and I added  
> \<%= stylesheet\_link\_tag “applicationNewIssueForm” %\>  
> to views which I want to change.  
> Unfortunately appearance of my views are not same where I used  
> applicaition.css as defult and I added \<%= stylesheet\_link\_tag  
> “applicationNewIssueForm” %\> although they are identical.

I’d venture two guesses.

First, try changing the name of your modified file to lose the  
capitalization. Try ‘application\_new\_issue\_form.css’. Rails’  
conventions do a lot of conversion between file and class names where  
the file has underscores separating words and the corresponding class  
name uses CamelCase. It might be getting confused.

Second, you say you ‘added’ the new style sheet to the view templates  
you want to change. You should check, using Firebug, to see if your new  
css file is actually being loaded, what styles are being overridden, and  
what styles are being applied in the end.

HTH,  
Bill

---

<div class="post-metadata">

**Author:** ![metdos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e495f1/32.png) [@metdos](https://www.ruby-forum.com/u/metdos)\
**Post date:** [October 2, 2009, 9:13am UTC](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494/3 "2009-10-02T09:13:58Z")

</div>

Application\_new\_issue\_form.css approach didn’t make any difference.  
Firebug is a great tool,it helped very much, I added required css as  
inline, and that it worked.  
Thanks.
