Closed paulschreiber closed 12 years ago
The model object doesn't exist when the step block is evaluated, so this can't be done.
I think what you want instead is for button_to's to work inside before blocks (which can access the model object).
I do want that, but I figured asking for something more general was better.
Provide access to model object in step blocks
Right now, it's only available in before and after block inside the step block.