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:

  1. place users_params method in application controller.
  2. 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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -