Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slurgfest
on Aug 28, 2012
|
parent
|
context
|
favorite
| on:
Lisp-like html as a replacement to bbcode/markup/t...
I'm certainly no cultist of MVC, but I would tend to agree with them that tightly coupling presentation details to the basic model is usually unwise.
judofyr
on Aug 28, 2012
[–]
You're not supposed to put these into your models. You should create a different class/method that accepts models and returns HTML:
class TweetWidget def initialize(tweet) @tweet = tweet end def content; … end end
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: