Guest User

Untitled

a guest
Jun 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class AdmsController < ApplicationController
  2.  
  3.  
  4. def index
  5. redirect_to(new_adm_path)
  6. end
  7.  
  8. def new
  9. @adm_new = Adm.new
  10. @adm_list = Adm.find(:all, :order => "fullname ASC")
  11. end
  12.  
  13. def create
  14. @adm_new = Adm.new(params[:adms]).save
  15. redirect_to :action => 'new'
  16.  
  17. end
  18.  
  19.  
  20. end
Add Comment
Please, Sign In to add comment