Sha256: a6a8a570fa2cf90efd0561f7aaeedd9575d8b78b080bb61a29855880628c7cbc
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
class LikesController < ApplicationController before_filter :authenticate_user! # POST /activities/1/like.js def create @like = Like.new(current_subject, params[:activity_id]) respond_to do |format| if @like.save format.js else format.js end end end # DELETE /activities/1/like.js def destroy @like = Like.find!(current_subject, params[:activity_id]) respond_to do |format| if @like.destroy format.js else format.js end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.4.3 | app/controllers/likes_controller.rb |