title: How to send images from ionic application to Ruby on Rails webapi that contains paperclip?
body: <pre><code>def create
  
      @activity = Activity.new(activity_params)
  
      if @activity.save
        respond_to do |format|
         format.js 
        end
      end
  end
  
  
  def activity_params
    params.require(:activity).permit(:title, :message, :activity_type, :allow_comment, :classroom_id, :school_user_id, :image)
  end
  </code></pre>