Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pluralise git_configs resource

for this resource, plural should be used to allow rails to do all its
magic
  • Loading branch information...
commit a6562aca81ad2f6503cad415a2b70f057320fda9 1 parent e9e20d9
@johnyb johnyb authored
View
2  app/controllers/git_config_controller.rb → app/controllers/git_configs_controller.rb
@@ -1,4 +1,4 @@
-class GitConfigController < ApplicationController
+class GitConfigsController < ApplicationController
respond_to :html
before_filter :find_git_config, :only => [:edit, :show, :update]
View
0  app/views/git_config/_form.html.haml → app/views/git_configs/_form.html.haml
File renamed without changes
View
0  app/views/git_config/edit.html.haml → app/views/git_configs/edit.html.haml
File renamed without changes
View
2  config/routes.rb
@@ -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:
View
2  spec/controllers/git_config_controller_spec.rb → spec/controllers/git_configs_controller_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe GitConfigController do
+describe GitConfigsController do
before(:each) do
request.env['HTTP_ACCEPT_LANGUAGE'] = "de, en"
Please sign in to comment.
Something went wrong with that request. Please try again.