Your RESTful controllers probably include new and edit actions, none of which are actually RESTful, they just provide user interfaces for the create and update REST actions. new and edit do not receive a separate NonRestUIController or anything else, they are stored in the appropriate resource controller, keeping your controllers semantically consistent. Similarly, Ajax actions related to a specific set of functionality or a specific resource must remain in the associated controller.
source share