Class: My::WechatUsersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/wechat/my/wechat_users_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



21
22
23
# File 'app/controllers/wechat/my/wechat_users_controller.rb', line 21

def destroy
  @wechat_user.destroy
end

#editObject



8
9
# File 'app/controllers/wechat/my/wechat_users_controller.rb', line 8

def edit
end

#showObject



5
6
# File 'app/controllers/wechat/my/wechat_users_controller.rb', line 5

def show
end

#updateObject



11
12
13
14
15
16
17
18
19
# File 'app/controllers/wechat/my/wechat_users_controller.rb', line 11

def update
  @wechat_user.assign_attribute wechat_user_params

  if @wechat_user.save
    redirect_to wechat_users_url
  else
    render :edit
  end
end