How to do multiple actions from a single link_to
<p>I have banner image that I want to link to an external site while recording user clicks into a clicks table and adding a point to that user's points in the users table.</p>

<p>How can I make the link_to image to do that? </p>

<p>For now, my code is below, but it doesn't redirect because I put the external URL in the controller. Also it doesn't call the users controller to record the points because I don't know how to call multiple actions using "link_to.. do end":</p>

<h3>index.html.haml</h3>

<pre><code>= link_to image_tag("http://res.cloudinary.com/../image.jpg", size: "100%", class: "img-fluid"), clicks_path(id: current_user.id, image_source: "abc"), method: :post, remote: true
# user_add_point_path(point: 2)
</code></pre>

<h3>clicks controller</h3>

<pre><code>def create
  @click = current_user.clicks.create(user_id: params[:id], image_source: params[:image_source])
if @click.save
  if params[:image_source] == 'abc'        
    redirect_to abc.com
</code></pre>

<h3>users controller</h3>

<pre><code>def add_point
  @user.increment!(:point)
</code></pre>