re: "view models" in Draper - my current hack doesn't work OOTB b/c Draper only loads *_draper.rb. https://gist.github.com/3887381 /cc @steveklabnik
-
-
Replying to @stevenharman
@stevenharman also, what’s this about loading *_draper.rb?1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik THAT was a typo. I meant it seems to only load /app/decorators/*_decorator.rb; I also have /app/decorator/*_presenter.rb1 reply 0 retweets 0 likes -
Replying to @stevenharman1 reply 0 retweets 0 likes
-
Replying to @steveklabnik
@steveklabnik I know, right? But Rails is complaining about an unknown constant CellaredBrewPresenter. I'll look into it... later.1 reply 0 retweets 0 likes -
Replying to @stevenharman
@stevenharman okay. :) I’d like to make it work.1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik Agreed. So glad that presenters are a kind of decorator... you know, so the directory name make sense. o_O1 reply 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.