stubbed in blank controllers/helpers/functional tests
This commit is contained in:
@@ -164,5 +164,22 @@ module Danbooru
|
||||
4 => "Character"
|
||||
}
|
||||
end
|
||||
|
||||
# Any custom code you want to insert into the default layout without
|
||||
# having to modify the templates.
|
||||
def custom_html_header_content
|
||||
<<-EOS
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("UA-86094-4");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
EOS
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
ActiveSupport::Inflector.inflections do |inflect|
|
||||
inflect.uncountable %w( feedback )
|
||||
inflect.uncountable %w( user_feedback )
|
||||
end
|
||||
|
||||
106
config/routes.rb
106
config/routes.rb
@@ -1,58 +1,56 @@
|
||||
Danbooru::Application.routes.draw do |map|
|
||||
# The priority is based upon order of creation:
|
||||
# first created -> highest priority.
|
||||
namespace :admin do
|
||||
resources :users
|
||||
end
|
||||
|
||||
# Sample of regular route:
|
||||
# match 'products/:id' => 'catalog#view'
|
||||
# Keep in mind you can assign values other than :controller and :action
|
||||
resources :advertisements
|
||||
resources :artists do
|
||||
member do
|
||||
put :revert
|
||||
end
|
||||
end
|
||||
resources :artist_versions
|
||||
resources :bans
|
||||
resources :comments
|
||||
resources :comment_votes
|
||||
resources :dmails
|
||||
resources :favorites
|
||||
resources :forum_posts
|
||||
resources :forum_topics
|
||||
resources :janitor_trials
|
||||
resources :jobs
|
||||
resources :notes
|
||||
resources :pools do
|
||||
member do
|
||||
put :revert
|
||||
end
|
||||
end
|
||||
resources :pool_versions
|
||||
resources :posts do
|
||||
member do
|
||||
put :revert
|
||||
end
|
||||
end
|
||||
resources :post_moderation_details
|
||||
resources :post_versions
|
||||
resources :post_votes
|
||||
resources :reports
|
||||
resources :sessions
|
||||
resources :tags
|
||||
resources :tag_aliases
|
||||
resources :tag_implications
|
||||
resources :tag_subscriptions
|
||||
resources :unapprovals
|
||||
resources :users
|
||||
resources :user_feedback
|
||||
resources :wiki_pages do
|
||||
member do
|
||||
put :revert
|
||||
end
|
||||
end
|
||||
resources :wiki_page_versions
|
||||
|
||||
# Sample of named route:
|
||||
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
||||
# This route can be invoked with purchase_url(:id => product.id)
|
||||
|
||||
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
||||
# resources :products
|
||||
|
||||
# Sample resource route with options:
|
||||
# resources :products do
|
||||
# member do
|
||||
# get :short
|
||||
# post :toggle
|
||||
# end
|
||||
#
|
||||
# collection do
|
||||
# get :sold
|
||||
# end
|
||||
# end
|
||||
|
||||
# Sample resource route with sub-resources:
|
||||
# resources :products do
|
||||
# resources :comments, :sales
|
||||
# resource :seller
|
||||
# end
|
||||
|
||||
# Sample resource route with more complex sub-resources
|
||||
# resources :products do
|
||||
# resources :comments
|
||||
# resources :sales do
|
||||
# get :recent, :on => :collection
|
||||
# end
|
||||
# end
|
||||
|
||||
# Sample resource route within a namespace:
|
||||
# namespace :admin do
|
||||
# # Directs /admin/products/* to Admin::ProductsController
|
||||
# # (app/controllers/admin/products_controller.rb)
|
||||
# resources :products
|
||||
# end
|
||||
|
||||
# You can have the root of your site routed with "root"
|
||||
# just remember to delete public/index.html.
|
||||
# root :to => "welcome#index"
|
||||
|
||||
# See how all your routes lay out with "rake routes"
|
||||
|
||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||
# match ':controller(/:action(/:id(.:format)))'
|
||||
match "/site_map" => "static#site_map"
|
||||
|
||||
root :to => "post#index"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user