edit ticket controller

This commit is contained in:
Sunandar
2017-02-03 13:46:59 +06:30
parent 721fd282ca
commit b4c9e8cc8e
8 changed files with 67 additions and 55 deletions

View File

@@ -1,5 +1,6 @@
class UsersController < ApplicationController
skip_before_filter :verify_authenticity_token
before_action :authenticate_member!
before_action :set_user, only: [:show, :edit, :update, :destroy]
# GET /users
@@ -32,7 +33,7 @@ class UsersController < ApplicationController
key=cipher.random_key
secrect_key= Base64.encode64(key)
@user.secrect_key=secrect_key
@email=email
respond_to do |format|
if @user.save
member_id= current_member.id