Skip to content

Allow #render_cell in a state #82

Closed
wants to merge 1 commit into from

2 participants

@nickhoffman

Hey Nick. This pull request makes it possible to call render_cell from within a state.

@apotonick
Owner

We could allow a syntax like

render :cell => :bassist, :state => :play

and make #render_cell delegate to that. Next, we may want to have that in instances and in views. I hate helpers.

Ah, I didn't realize that you wanted to abstract it one level further. I like render :cell => :foo, :state => :bar. It's clean, concise, and feels like it fits in with Rails' rendering stack.

@apotonick
Owner

This now works in view models using #cell and in concept cells with #concept.

@apotonick apotonick closed this May 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.