



Interesting post here ( http://kpumuk.info/ruby-on-rails/simplifying-your-ruby-on-rails-code/ ) about Presenter patterns but buried in it is a little snippet of code that I want to store away for later
“I prefer to put presenters into a separate folder app/presenters, so first we should add it to Rails load path. Add this line to your config/environment.rb:”
config.load_paths += %w(#{Rails.root}/app/presenters )
There are classes that I’ve got in app/models/ that I don’t feel should be there as they don’t relate to tables in the database, I can use this to arrange them in a more organised manner










More Options ...

Categories
Tag Cloud
Blog RSS
Comments RSS

Void (Default)
Life
Earth
Wind
Water
Fire
Lightweight