[Sdrug] Writing Rails Plugin

Chris Abad chris at integralimpressions.com
Mon Jul 3 21:03:54 GMT 2006


I'm writing a Rails plugin and have an item I'm looking for advise on:

BACKGROUND: The plugin is to add simple support for .css files (w/  
extension .rcss) w/ Erb.

I want to extend the rails controller generator to create a # 
{file_name}.rcss file when it generates a controller. I could simply  
override ControllerGenerator < Rails::Generator::Base, but is there a  
way to do it w/o having to include all of the template files it uses  
in my own plugin directory?





More information about the Sdruby mailing list