title: Button Redirect to a controller in Rails Slim template
body: <p>I have a rails controller page home_controller.rb </p>
  
  <pre><code>class HomeController &lt; ApplicationController
  
    def index
      #@users = User.all
      @loan_applications = LoanApplication.all
    end
  
    def button_listing_show
      redirect_to lp_banker_assignments_path
    end
  end
  </code></pre>
  
  <p>And I have this Rails Slim button code </p>
  
  <pre><code>button Go to Listings onclick="&lt;%home.button_listing_show%&gt;"
  </code></pre>
  
  <p>What i want is on the onclick events the page redirects to this path.</p>
  
  <p>Can someone provide an answer for me either in Slim or in Rails.</p>
  
  <p>Thanks </p>