Displaying 1 result from an estimated 1 matches for "cooleffect".
Did you mean:
cooleffects
2006 Jan 22
2
Using register_template_handler to serve CSS files (Making ActionView handle .css as .rhtml)
...Rails code inside CSS files, so I set up
a controller (StylesController) to serve CSS files that reside inside
the controller''s view folder when the browser requests /stylesheets/:action
So in the controller I just define empty actions with the names I want
my style sheets in (ie: def cooleffects end - that would respond to
/stylesheets/cooleffects).
And in views/styles I have cooleffects.css
Then, I tried the following (both inside the controller, and in a
plugin''s init.rb):
ActionView::Base.register_template_handler ''css'', ActionView::Base
Which doesn'...