Nick Sutterer
Nick Sutterer
There is none - I'm busy with a million other gems, I was hoping for @timoschilling to dump his brain. Happy to chat about it.
:joy: Don't include anything, try `Rails.main_app` or whatever the API is. Can you post your solution here, please? :heart:
Maybe our best @rafaelfranca can help here? :tropical_drink:
Ha, you're wrong on this! It is super dirty and a hack the way Rails helpers do it and the way they're included into different classes and override each other....
Hi Jakub, this has nothing to do with "syntax" but with semantics. Cells is not a DSL but a functional object that can be _called_ and returns a HTML fragment....
Can you make some examples how you use Cells? Because I can see from your snippets that you call different "helpers" on one cell instance - which is not what...
Your syntax is encouraging "fat cells" :stuck_out_tongue_winking_eye: which basically means people will use one cell class for many different concerns, which, since you like to argue in pattern names, breaks...
BTW thanks for the example, it's a cool starting point to discuss! :heart:
Thanks, the guides are not written, yet, but the first few will come this weekend. :beer:
Maybe this helps? http://trailblazer.to/gems/cells/rails.html#global-partials It's not a recommended way of doing "global" views, though. You should encapsulate any global view in a cell.