Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UsersController < ApplicationController
- # Rails In Chains provides a mixin that defines the standard
- # CRUD controller actions for you (:index, :new, :create, :show, :update, :destroy)
- include RailsInChains::ChainControllerMethods
- # Tell Rails In Chains what the default resource for this
- # controller is:
- self.default_resource = User
- # Tell the default CRUD actions which instance variable they
- # should pass the resource information to the views through:
- self.instance_variable = :user
- end
Add Comment
Please, Sign In to add comment