# css tag to ruby code

**URL:** <https://discuss.rubyonrails.org/t/css-tag-to-ruby-code/35982>\
**Category:** rubyonrails-talk\
**Created:** [November 3, 2008, 10:17am UTC](https://discuss.rubyonrails.org/t/css-tag-to-ruby-code/35982 "2008-11-03T10:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishara\_Gunathilake](https://avatars.discourse-cdn.com/v4/letter/i/839c29/32.png) [@Ishara\_Gunathilake](https://discuss.rubyonrails.org/u/Ishara_Gunathilake)\
**Post date:** [November 3, 2008, 10:17am UTC](https://discuss.rubyonrails.org/t/css-tag-to-ruby-code/35982/1 "2008-11-03T10:17:36Z")

</div>

can anyone tell me how can i apply css tag to ruby codes

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [November 3, 2008, 10:21am UTC](https://discuss.rubyonrails.org/t/css-tag-to-ruby-code/35982/2 "2008-11-03T10:21:36Z")

</div>

I'm not sure that means anything at all. If you want to style the pages you produce with rails using css then - either the tags themselves are just in the .erb files: do as you usually do - if they are generated by a rails helper (eg form\_for, link\_to), these all take a hash of html options which you can use to set their class and so on (or inline styles if you are so inclined)

Fred
