Hi K. R.,
The record not found error is due to the RESTful interpretation of
URLs by Rails. Given the URL ...
... Rails rails assumes that you are calling the 'show' action on the
'xxx' controller with 'archiv' as the ID of the model instance to be
To get rails to understand that 'archiv' is a new action, you need to
edit the routes.rb file and add appropriate routes using either
the :collection option (if the archiv action works with a collection
of model instances) or with the :member option (if you are working
with only one instance of the model).
Check out the screencasts below for a quick intro to routes and custom
Custom REST actions