26 Nov 2009 @ 2:59 PM 

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


Tags Categories: Uncategorized Posted By: admin
Last Edit: 26 Nov 2009 @ 02 59 PM

E-mailPermalinkComments (0)
\/ More Options ...
  • No categories
Change Theme...
  • Role »
  • Posts »
  • Comments »
Change Theme...
  • VoidVoid (Default)
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLightweight