Working with css

How do you work with css in Rails? Do I use it in the view-pages, the
normal way? Or can a modify the predefined methods, like text_field()?

How do you work with css in Rails? Do I use it in the view-pages, the
normal way? Or can a modify the predefined methods, like text_field()?

Well, redefining text_field would mean repeating the same style over and
over, and thereby eliminating the ability to cache you entire style
settings. You should probably use public/stylesheets/ and the
appropriate
helpers to link.

Image paths in the CSS document get screwed up if you have a webserver
root different than the one used in production (say, you develop on
webrick but deploy in www.foo.com/my_rails_app/), but you could fix that
with a proper deployment script.

Good Luck!


Matthew B. :: 607 227 0871
Resume & Portfolio @ http://madhatted.com