passwords (for the application) should be processed using self-identification / authorization, such as Devise, Clearance, authLogic, etc.
The variables that you want to receive through the ruby ββcode of this request to the application can be stored in global variables. Fixed level values ββcan be stored in constants. In rails, since controllers inherit from application_controller, you can define class level constants there. Check the Ruby language for exact inheritance rules for these variable variable types.
In fact, itβs best not to do this at all or to avoid it whenever possible, and many good programmers avoid it like a plague. This means that your code blocks are not encapsulated - actions now depend on external values, and this increases the connection, forcing many elements to depend on one thing that can change outside their area.
source share