Closed fgrehm closed 12 years ago
I like config.helpers.register as the underlying mechanics. I do think we should grep /helpers/*.rb
and auto-register those files though.
Adding a new helper should be as easy as dropping the file in the right place IMO.
We need some kind of convention to make this work, like having helpers defined under AppName::Helpers
or just Helpers
module so we can figure out from where we should grab the module to include.
Other thoughts?
AppName::Helpers
works I think.
We should have an easier way to register view helpers than
I'd be happy to have that as a simple shortcut on
config/default.rb
but we might not have required the helper file yet at "configuration time" or we would need to have autoloading in place for it to work.We could also have a "helper module" that sends the include:
Any other thoughts on how can we handle this? Are you guys happy with the current way of doing it?