Skip to content

Commit

Permalink
13 Remove obsolete codes
Browse files Browse the repository at this point in the history
  • Loading branch information
id774 committed Sep 24, 2012
1 parent 6cd35b6 commit 333a8b6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/controllers/blogs_controller.rb
Expand Up @@ -28,22 +28,6 @@ def edit
@blog = Blog.find(params[:id])
end

# PUT /blogs/1
# PUT /blogs/1.json
def update
@blog = Blogs.find(params[:id])

respond_to do |format|
if @blog.update_attributes(params[:status])
format.html { redirect_to edit_blog_path(@blog), notice: 'blog was successfully updated.' }
format.json { head :ok }
else
format.html { render action: "edit" }
format.json { render json: @blog.errors, blog: :unprocessable_entity }
end
end
end

private
def authenticate
authenticate_or_request_with_http_basic do |username, password|
Expand Down

0 comments on commit 333a8b6

Please sign in to comment.