work on forum post controller

This commit is contained in:
albert
2011-01-12 18:21:39 -05:00
parent d6f1d09da0
commit 523cc9fe02
6 changed files with 121 additions and 23 deletions

View File

@@ -7,6 +7,7 @@ class UploadsController < ApplicationController
if params[:url]
@post = Post.find_by_source(params[:url])
end
respond_with(@upload)
end
def index
@@ -16,6 +17,7 @@ class UploadsController < ApplicationController
def show
@upload = Upload.find(params[:id])
respond_with(@upload)
end
def create
@@ -26,8 +28,6 @@ class UploadsController < ApplicationController
def update
@upload = Upload.find(params[:id])
@upload.process!
render :update do |page|
page.reload
end
respond_with(@upload)
end
end