Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AdmsController < ApplicationController
- def index
- redirect_to(new_adm_path)
- end
- def new
- @adm_new = Adm.new
- @adm_list = Adm.find(:all, :order => "fullname ASC")
- end
- def create
- @adm_new = Adm.new(params[:adms]).save
- redirect_to :action => 'new'
- end
- end
Add Comment
Please, Sign In to add comment