Hiccdown Development Notes

Showing only #303 and its comments.

See full discussion
  Log 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. You may need to scroll sideways.
Dennis Hackethal’s avatar
Dennis HackethalOP·​#303·​
1st of 2 versions·​latest

Hiccdown methods should live in Rails helpers as class methods. That way, the problem described in #302 is solved – methods can be referenced unambiguously:

ruby
ProductsHelper.index
StoresHelper.index
Criticized3ArchivedLinked to by #5851
Dennis Hackethal’s avatar
Dennis HackethalOP·​#312·​·​Criticism

That would be mixing class methods an instance methods in Rails helper modules, which typically only contain instance methods. Not idiomatic Rails usage.

Archived
Dennis Hackethal’s avatar
Dennis HackethalOP·​#332·​·​Criticism

#327 applies here, too: no access to instance variables inside helper class methods.

Archived
Dennis Hackethal’s avatar
Dennis HackethalOP·​#1981·​·​Criticism·​System-generated

Superseded by #1980.

Archived
Dennis Hackethal’s avatar
Dennis HackethalOP·​#305·​·​Criticism
2nd of 2 versions

Does that mean they wouldn’t have access to the view_context? If so, calling helper methods from inside these class methods wouldn’t be possible.

Criticized1Archived
  • Rationally adoptable.
  • Not rationally adoptable.
  • Older versions with pending criticisms.
  • Ideas are blue, criticisms red, comments small and gray.
  • Hover over ideas to expand them.
  • Click on ideas to jump to their place in the discussion.