How to use users_param of UsersController in another controller in rails 4 -
i need use private method users_param in 2 controller..
solutions think:
- place users_params method in application controller.
- use helper method , include in controller if needed.
as controller not have model.it updating user params in controller. how can use strong params of userscontroller.??any better solution??
Comments
Post a Comment