Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update comments

  • Loading branch information...
commit 7102d61afadebed1f78c5ebb39f17dcc5bb52118 1 parent 8963146
@blg002 authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 app/controllers/articles_controller.rb
View
12 app/controllers/articles_controller.rb
@@ -5,21 +5,21 @@ def get_article
@article = Article.find(params[:id])
end
- # GET /posts
+ # GET /articles
def index
@articles = Article.all
end
- # GET /posts/1
+ # GET /articles/1
def show
end
- # GET /posts/new
+ # GET /articles/new
def new
@article = Article.new
end
- # POST /posts
+ # POST /articles
def create
@article = Article.new(params[:article])
@@ -30,14 +30,14 @@ def create
end
end
- # PUT /posts/1
+ # PUT /articles/1
def update
@article.update_attributes(params[:article])
redirect_to @article
end
- # DELETE /posts/1
+ # DELETE /articles/1
def destroy
@article.destroy
flash[:notice] = "Article gone!"
Please sign in to comment.
Something went wrong with that request. Please try again.