Please enable JavaScript.
Coggle requires JavaScript to display documents.
Controller_Basic (Paramerters (Params Hash (query string parameter :…
-
methods: in instance object
action: for routing, resource's action
public methods are callable as action,
private or protected are not.
Params Hash
-
-
In Rails, these two types of parameter are available in the params hash in controller.
-
hash: <input name="client[phone]", value="123456">
-
config.wrap_parameters : can omit the root element in the JSON parameter, wrapped key based on your controller's name.
-
-
definition : filter attributes in params, raise 400 error when not all required parameters are passed in
-
-
-
definition : the persisted data between client and server for interaction, session has unique ID which store in cookie and this id can recognize different user.
-
Accessing : through session instance method as hash
The Flash : special kind of session which is cleared with each request