Skip to content
Nick Sutterer edited this page Jun 5, 2015 · 2 revisions

Yes, we will experiment with refactoring ActionView.

  1. Try using Cell::ViewModel as a replacement for AV::Base.
  2. Show how we can still have a template resolver with templates from DB, etc.
  3. URL helpers. FUCKIN' FIX THIS. My plan is to have an object that responds to comments_path and so on, instead of a FUCKING MODULE that looks different from context to context. This object can still be a global object, but it will cleanly encapsulate URL logic without FUCKING breaking url helpers everywhere.
  4. Same with assets helper. That needs to be an object that can be extended at runtime, e.g. if you use sprockets.
  5. NO respond_to? IN ANY OF THOSE FUCKING HELPERS. This is incredibly horrible to work with once you try working with helpers in an environment that is not a fully setup Rails ActionController instance with one million instance variables assigned.
Clone this wiki locally