[Rails] Re: Am I reinventing polymorphic associations?

2009-10-24 Thread lwe
In most projects I'm using an initializer to load all lib/*.rb files, like: config/initializers/requires.rb: # auto-load all ruby files from RAILS_ROOT/lib/ Dir[File.join(RAILS_ROOT, 'lib', '*.rb')].each do |file| require file Note, if you have any files you do not want auto-loaded, you certa

[Rails] [ANN] a helper to DRY-up internationalized 's (http://github.com/lwe/page_title_helper)

2009-07-08 Thread lwe
Hey there Code and (longer) quick-start guide can also be found here: http://github.com/lwe/page_title_helper To customize page titles there are many different methods, among the most popular (and best looking) is certainly: http://railscasts.com/episodes/30-pretty-page-title, even more there