Merge branch 'liks_fix'

This commit is contained in:
yafeilee 2014-06-04 10:32:03 +08:00
commit a4c0d16d65
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class LikesController < ApplicationController
def create
post = Post.find( params[:blog_id] )
like = post.liks.build
like = post.likes.build
if like.save
render :json=> { success: true, id: like.id.to_s, count: post.liked_count }