Guest User

Untitled

a guest
Jul 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class UsersController < ApplicationController
  2. # Rails In Chains provides a mixin that defines the standard
  3. # CRUD controller actions for you (:index, :new, :create, :show, :update, :destroy)
  4. include RailsInChains::ChainControllerMethods
  5.  
  6. # Tell Rails In Chains what the default resource for this
  7. # controller is:
  8. self.default_resource = User
  9.  
  10. # Tell the default CRUD actions which instance variable they
  11. # should pass the resource information to the views through:
  12. self.instance_variable = :user
  13. end
Add Comment
Please, Sign In to add comment