Permalink
Browse files

Adicionada nova rota para new

Signed-off-by: Rafael Mendonça França <rafaelmfranca@gmail.com>
  • Loading branch information...
1 parent 876b841 commit 7b51fbc9bee699e4e4169ff4e4725047e5b93c20 @rafaelfranca committed May 9, 2010
Showing with 3 additions and 1 deletion.
  1. +2 −0 app/controllers/articles_controller.rb
  2. 0 app/views/articles/new.html.erb
  3. +1 −1 config/routes.rb
View
2 app/controllers/articles_controller.rb
@@ -3,4 +3,6 @@ def index
@articles = Article.all
end
+ def new
+ end
end
View
0 app/views/articles/new.html.erb
No changes.
View
2 config/routes.rb
@@ -1,5 +1,5 @@
Secomp::Application.routes.draw do |map|
- get "articles/index"
+ resources :articles
# The priority is based upon order of creation:
# first created -> highest priority.

0 comments on commit 7b51fbc

Please sign in to comment.