activescaffold/active_scaffold — Issue #112: active_scaffold_controller_generator generates failing tests
Author: aspiers
Created: 2012-01-08 18:05:30+00:00
State: open

If I understand it right, AS piggy-backs onto the standard generators for generating functional tests for a new controller. However, as noted in [this post](https://groups.google.com/d/msg/activescaffold/GaCrUQFmsZI/3YtLlmZqUKsJ), an AS handler for the `#create` action expects the new record's attributes to be passed via `params[:record]`, not `params[model.to_s]`. That means a controller test freshly generated by active_scaffold_controller_generator will fail until that `param` key is tweaked to be `:record`.