The formtag method for generating a form requires a route to which the form should be submitted---that is, a URI and an HTTP verb. We use the RESTful URI helper and HTTP POST method to generate a route to the create action, as rake routes reminds us.
Inside the create controller action, we placed a debug breakpoint to inspect what's going on, and used a subset of the debugger commands in Figure fig:ruby_debug to inspect the params hash. In particular, because our form's field names all looked like movie, params['movie'] is itself a hash with the various movie fields, ready for assigning to a new Movie object. Like many Rails methods, params can take either a symbol or a string---in fact params is not a regular hash at all, but a HashWithIndifferentAccess, a Rails class that quacks like a hash but allows its keys to be accessed as either symbols or strings.