@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 also, if the context gets updated inside the view, then Draper wouldn't see the change.1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik it's kind of scary that it *can* change.1 reply 0 retweets 0 likes -
-
Replying to @steveklabnik
@steveklabnik yeah. Have you looked at Raptor? It isn't anywhere near finished/useable, but it has a lot of cool idea, imo.1 reply 0 retweets 0 likes
Replying to @jonicklas
@jonicklas I have! and I totally agree.
11:33 AM - 14 Jul 2012
0 replies
0 retweets
0 likes
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.