@steveklabnik checking out draper. I like the idea, but I dislike the global state: https://github.com/jcasimir/draper/blob/master/lib/draper/view_context.rb …, is it really necessary?
-
-
Replying to @jonicklas
@jonicklas it is not ideal but it's the best possible way at the moment. there isn't really an API exposed to get this kind of info1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik can't you just send it in as a parameter to the presenter?1 reply 0 retweets 0 likes -
Replying to @jonicklas
@jonicklas@steveklabnik e.g. SomePresenter.new(self,@my_model)5 replies 0 retweets 1 like -
Replying to @jonicklas
@jonicklas@steveklabnik E.g. https://github.com/RobinBrouwer/exhibit … does that + a helper so you don't have to pass the view context in explicitly.1 reply 0 retweets 0 likes
Replying to @henrik
@henrik @jonicklas yeah, display_case does that too. active_decorator does it the Draper way.
11:34 AM - 14 Jul 2012
0 replies
0 retweets
1 like
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.