title: redirect_to is undefined
body: <p>I'm trying to use a <code>redirect_to</code> in my controller and I'm getting an error complaining that redirect_to is not defined (please see logs below)</p>
  
  <blockquote>
    <p>=> Booting Puma<br>
    => Rails 5.2.1 application starting in development<br>
    => Run <code>rails server -h</code> for more startup options Puma starting in   single mode...<br>
    * Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas<br>
    * Min threads: 5, max threads: 5<br>
    * Environment: development<br>
    * Listening on tcp://0.0.0.0:3000<br>
     Use Ctrl-C to stop Started GET  "/checkout" for 127.0.0.1 at 2018-11-22 13:18:56 -0800    (0.1ms)<br>
    SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY<br>
    "schema_migrations"."version" ASC   ↳<br>
    /var/lib/gems/2.5.0/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98<br>
    ActionController::RoutingError (undefined method `redirect_to' for
    ChargesController:Class): 
    app/controllers/charges_controller.rb:39:in
    `&LT;class:ChargesController>' app/controllers/charges_controller.rb:3:in
    `&LT;main>'</p>
  </blockquote>
  
  <p>My code is below. I'm not sure what I'm doing wrong. How do I go about debugging this? Any help would be appreciated.</p>
  
  <pre><code>class ChargesController &lt; ApplicationController
    def create
      redirect_to(:controller =&gt; 'home_controller', :action =&gt; "index")
    end
  </code></pre>
  
  <p>In my rails <code>routes.rb</code> I have </p>
  
  <pre><code>  get "/charge",    to: "charges#create"
  </code></pre>