I do something similar to segment my stylesheets.
On Feb 23, 2007, at 4:22 PM, Nick Zadrozny wrote:
On 2/23/07, Patrick Crowley <[EMAIL PROTECTED]> wrote:
For your problem, I'd try including a javascript based on the
controller or action name.
+1 for that. I've done the same with javascript based on the
controller name.
I started writing a simpler version of the helper that Patrick just
shared, but he beat me to it with something more sophisticated.
Patrick: any reason for FileTest#exists rather than File#exists?
Just curious.
Anyway, I couldn't help optimizing a bit: http://p.caboo.se/42575 :-)
--
Nick Zadrozny • http://missionsbridge.org/people/nick
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby