Skip to content

Commit

Permalink
+ even more headers
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Feb 9, 2010
1 parent 00d3bfb commit 05d1406
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Expand Up @@ -8,14 +8,17 @@
<body>
<h1>Projects</h1>
<h2>View Models</h2>
<h3>Silly Tagline</h3>
<p>The missing glue between the letters in ruby on rails' MVC.</p>
<h3>But why? Let me tell you a story of high adventure</h3>
<p>During writing a music community platform with multiple different profile types – in our case bands, normal members, venues, and labels – it occurred to us that type specific methods were hard to place. As a simple example the displayed name.</p>
<p>For bands that needed to be just the band name, for members the name and surname, for labels the name along with the amount of bands under contract.</p>
<p>First, we tried putting it into models, but that violated the MVC principle, we didn't feel to good about sticking view code into the model. Besides, all view helpers were pretty inaccessible.</p>
<p>Even after sticking the code into a helper, thus into the view, this didn't feel much better either, as we had to check for the type of the model. That resulted in case statements which we do not speak about too much nowadays. Even bringing it up here caused me to cringe.</p>
<p>So, where to put this view specific, model-type dependent code?</p>
<p>Enter view models, the public face of the normally shy models:</p>
<a href="http://github.com/floere/view_models">Repository</a>
<p>Enter view models, the public face of the normally shy models.</p>
<h3>Repository</h3>
<a href="http://github.com/floere/view_models">Check them out here</a>
<h2>Contexts</h2>
<a href="http://github.com/floere/contexts">Repository</a>
</body>
Expand Down

0 comments on commit 05d1406

Please sign in to comment.