Design Patterns

params is an object (a hash) that holds all of the parameters passed in a browser request. params[:id] holds the id, or primary key, of the object. When you click a link for a specific category, the id of that category is passed in the params object, so that show can display that category. Method pairs. Next we have the new and create methods. ................
................