Skip to content

Commit

Permalink
Fixing the destroy method on pages to be one liner instead of two. [#…
Browse files Browse the repository at this point in the history
…22 state:resolved]
  • Loading branch information
Joshua Owens authored and Joshua Owens committed Mar 5, 2008
1 parent 2c6e7da commit 65efad4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def search
# DELETE /pages/1
# DELETE /pages/1.xml
def destroy
@page = Page.find(params[:id])
@page.destroy

@page = Page.find(params[:id]).destroy
respond_to do |format|
format.html { redirect_to(pages_url) }
format.xml { head :ok }
Expand Down

0 comments on commit 65efad4

Please sign in to comment.