Hiccdown Development Notes
Showing only #313 and its comments.
See full discussionLog in or sign up to participate in this discussion.
With an account, you can revise, criticize, and comment on ideas.Discussions can branch out indefinitely. Zoom out for the bird’s-eye view.
Hiccdown methods should live in their own, separate modules. How about they are called ‘renderers’?
module ProductsRenderer
def self.index vc, # …
vc.some_helper_method
end
end
Then how would you call index from a helper method?
Criticism of #313Criticized1oustanding criticism
I don’t think that’s something people would do a lot, but they still easily could: ProductsRenderer.index(self)
Criticism of #317
Tested, it works. self does indeed point to the view_context in the helper. Verified by printing object_ids.
Criticism of #321