Permalink
Browse files

pluralise git_configs resource

for this resource, plural should be used to allow rails to do all its
magic
  • Loading branch information...
1 parent e9e20d9 commit a6562aca81ad2f6503cad415a2b70f057320fda9 @johnyb johnyb committed Apr 29, 2012
@@ -1,4 +1,4 @@
-class GitConfigController < ApplicationController
+class GitConfigsController < ApplicationController
respond_to :html
before_filter :find_git_config, :only => [:edit, :show, :update]
View
@@ -14,7 +14,7 @@
get ':name/history', :action => 'history', :as => :page_history
end
- resources :git_config
+ resources :git_configs
resources :users
# The priority is based upon order of creation:
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe GitConfigController do
+describe GitConfigsController do
before(:each) do
request.env['HTTP_ACCEPT_LANGUAGE'] = "de, en"

0 comments on commit a6562ac

Please sign in to comment.