Nick Sutterer

Results 675 comments of Nick Sutterer

What happens when you call `::Rails::env` - this will work, that's pure Ruby and no Cells involved.

Of course, because this is wrong! :stuck_out_tongue_winking_eye: `cell(:promotion_rule).(:selector)` will return a Capybara-assertable string. `cell(:promotion_rule)` returns the cell instance. That's what you want.

In 4.1, this is implemented: https://github.com/apotonick/cells/blob/4d39f994e6dd288367e75d30cec2d30ac7e1aec6/test/public_test.rb#L70 Is that cool?

The `html_safe` shouldn't be necessary since that's done via `cells-rails` automatically. Other than that, what API would you like to have?

We actually thought of a "collection context object". We could totally do that, that's not really magic.

Please update `kaminari-cells` to 0.0.4.

https://github.com/trailblazer/trailblazer-cells is gonna be the preferred, canonical way. I love it.

In Cells 5, `cell` and `concept` will be identical.

In Cells 5, it'll be gone! In 4.1, the old-school `RailsWayCell` style is still supported, but I hate it a lot! :laughing: :rocket:

Make sure to only use `Trailblazer::Cell`, it's the API of the upcoming Cells 5 that drops all the former versions.