Add validate_assets(document) method for debugging
Split ids and action from params

Somewhere along the line, Rails has changed the way it passes
variables from a globbed route to the controller.  It used to
pass along an array, but now it's just a string.