title: Rails View isn't refreshing after redirect_to
body: <p>I'm working on a sample Rails app that has Users, Events (that the user creates) and ultimately, Users will be able to subscribe / attend these events.</p>
  
  <p>I have a table where users can subscribe and unsubscribe from events when they click a link_to button in the event row. The link_to calls a method from the event_controller that has a redirect to the current_path but when I click the button nothing happens to the view but it appears that the server renders the view. </p>
  
  <p>Is this because I am calling it from the event_controller but using the show controller from User ?</p>
  
  <p>LOG:</p>
  
  <pre><code> Rendered users/show.html.erb within layouts/application (17.1ms)
  </code></pre>
  
  <p>Users > show.html.erb</p>
  
  <pre><code>    &lt;% if current_user?(@user) %&gt;
          &lt;td&gt;&lt;%= link_to "Delete", e, method:  :delete,
                          data: { confirm: "You sure?" } %&gt;&lt;/td&gt;
      &lt;% else %&gt;
          &lt;% if attendingEvent?(current_user, e.id) %&gt;
              &lt;td&gt;&lt;%= link_to "Not Going", events_remove_event_to_attend_path(event_id: e.id, event_owner_id:@user.id, current_path:request.fullpath), remote: true %&gt;&lt;/td&gt;
          &lt;% else %&gt;
              &lt;td&gt;&lt;%= link_to "I Want To Go", events_add_event_to_attend_path(event_id: e.id, event_owner_id:@user.id, current_path:request.fullpath), remote: true %&gt;&lt;/td&gt;
          &lt;% end %&gt;
      &lt;% end %&gt;
  </code></pre>
  
  <p>events_controller.rb</p>
  
  <pre><code>  def add_event_to_attend
      puts attend_params
      puts request.fullpath
      @attend = Attendee.new
      @attend.event_id = (attend_params[:event_id])
      @attend.user_id = current_user.id
      if @attend.save
        flash[:success] = "You created an assocations"
        redirect_to(attend_params[:current_path])
        puts 'saved'
      else
        flash[:danger] = "You did not create the event"
        puts 'not saved'
      end
    end
  
    def remove_event_to_attend
      @event_to_delete = Attendee.find_by_user_id_and_event_id(current_user.id,params[:event_id])
      @event_to_delete.destroy
      redirect_to(attend_params[:current_path])
    end
  </code></pre>