Class: EricWeixin::Cms::Weixin::UsersController
- Inherits:
-
BaseController
- Object
- BaseController
- EricWeixin::Cms::Weixin::UsersController
- Defined in:
- app/controllers/eric_weixin/cms/weixin/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 |
# File 'app/controllers/eric_weixin/cms/weixin/users_controller.rb', line 2 def index pp user_params @user = ::EricWeixin::WeixinUser.search_weixin_user(user_params).paginate(:page => params[:page], :per_page => 10) end |
#modify_remark ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/eric_weixin/cms/weixin/users_controller.rb', line 8 def modify_remark user = ::EricWeixin::WeixinUser.find(params[:id]) user.set_remark params[:new_remark] user.reload render text: user.remark end |