Forum: Ruby on Rails css tag to ruby code

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ishara G. (Guest)
on 2008-11-03 12:18
(Received via mailing list)
can anyone tell me how can i apply css tag to ruby codes
Frederick C. (Guest)
on 2008-11-03 12:22
(Received via mailing list)
On 3 Nov 2008, at 10:17, Ishara G. wrote:

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

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
This topic is locked and can not be replied to.