major refactoring of javascripts

This commit is contained in:
albert
2011-03-10 17:59:42 -05:00
parent efa6856b4a
commit 9c0a961ab2
28 changed files with 168 additions and 415 deletions

View File

@@ -9,11 +9,9 @@ class FavoritesController < ApplicationController
def create
Post.find(params[:id]).add_favorite(CurrentUser.user)
render :nothing => true
end
def destroy
Post.find(params[:id]).remove_favorite(CurrentUser.user)
render :nothing => true
end
end