Add required require to the wiring file

Add to_param method to attachment s.t. the rails helpers can pick up the
ID's correctly.