We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Simple actions for like and unlike
def like story = Story.find(params[:id]) respond_to do | format | format.json { render json: { success: story.like(current_user).present? }.to_json } end end def unlike story = Story.find(params[:id]) respond_to do | format | format.json { render json: { success: story.unlike(current_user).present? }.to_json } end end