Rails Misapprehensions: Caching Views is Not the View’s Job!

{{{ Caching is a generic approach to speed up processing time in software. A common pattern used in Rails is to *cache already rendered markup to save rendering time*. Basically, there are two concepts for view caching in Rails. * *Page caching* saves the complete page. This is good if your page doesn’t have dynamic… Continue reading Rails Misapprehensions: Caching Views is Not the View’s Job!

Pragmatic Rails: Thoughts on Views, Inheritance, View Inheritance and Rails 3.0.4

{{{ While hacking on “Cells”:http://cells.rubyforge.org/ for Rails 3 with Yehuda earlier this year we were discussing if Cells’ view inheritance will be superseded by Rails.Yehuda patiently *postponed any work on it* with the words _”we will do that for you”_ 🙂 Apparently, he didn’t lie. It seems that “view inheritance will be available directly in… Continue reading Pragmatic Rails: Thoughts on Views, Inheritance, View Inheritance and Rails 3.0.4

Rails Misapprehensions: Cells don’t break MVC

{{{ I was posting “a stupid simple example how Cells can be used”:http://nicksda.apotomo.de/2010/10/why-rails-controllers-need-a-double-render/ the other day. This controversial post got lots of great comments, thanks to all! While some just questioned Cells and its use, a few *comments really bashed the project* in a very aggressive way. *I like that.* The rudeness in some sequential… Continue reading Rails Misapprehensions: Cells don’t break MVC

Why Rails Controllers need a Double Render

{{{ In one of my last posts I “already discussed the improvements”:http://nicksda.apotomo.de/2010/10/10-points-how-cells-improves-your-rails-architecture/ Cells brings to your Rails app by *providing view components*. The last day I had an lively discussion about the concept of _partials_ or page fragments in Rails. *Partials make me feel sick.* People ordinarily use ’em in order to have “_DRY_ code”.… Continue reading Why Rails Controllers need a Double Render