forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
AV 5
Nick Sutterer edited this page Jun 5, 2015
·
2 revisions
Yes, we will experiment with refactoring ActionView.
- Try using
Cell::ViewModel
as a replacement forAV::Base
. - Show how we can still have a template resolver with templates from DB, etc.
- 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. - Same with assets helper. That needs to be an object that can be extended at runtime, e.g. if you use sprockets.
- 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.