Displaying 1 result from an estimated 1 matches for "require_stylesheet".
2006 Jan 03
1
RequireResourceHelper for JS and CSS
...uire_resource(type, name)
variable = type.to_s.pluralize
array = instance_variable_get("@#{variable}")
instance_variable_set("@#{variable}", (array || []) | [name])
end
def require_javascript(script)
require_resource(:javascript, script)
end
def require_stylesheet(sheet)
require_resource(:stylesheet, sheet)
end
end
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/693c485d/attachment-0001.html