Don’t use jbuilder or rabl, use https://github.com/josevalim/active_model_serializers … #railsclub
-
-
@steveklabnik uh, what? they’re testable, and you should still keep them as simple as you would with any templating languageThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik (decorators, presenters, whatever)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik meaning there should be little to test. -
@fowlduck yeah but nobody actually does, unless they use mustache
- Show replies
New conversation -
-
-
@steveklabnik @fowlduck Right, because Draper has proven to be *so* easy to test. :p -
@ReinH @fowlduck pssh we're talking about ams not draper
End of conversation
New conversation -
-
-
@steveklabnik @fowlduck saying they are impossible to test seems a bit odd. Considering I see them tested well all the time over many apps.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik @fowlduck I'd say they are as "impossible" to test as XML builder or frankly any other view template. -
@nesquena@steveklabnik I’s argue it’s easier to test than html
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.