Ruby on Rails - Is params a method or a hash?Posted: edited May 19 at 11:52 - Source : stackoverflow
So, I am trying out the Getting Started section of the Ruby on Rails guides here.
I did not understand a line in this tutorial. Quoting it:
The params method is the object which represents the parameters (or fields) coming in from the form.
I do have some previous experience in rails, and I always assumed
params is a hash. But here they call it a
method which is an object.
method or a
hash? Also, in ruby, are methods also objects?