AutoCommit Die Jun 16 16:03:07 CEST 2015
This commit is contained in:
@@ -51,6 +51,6 @@ def current_ability
|
|||||||
@current_ability ||= Ability.new(current_user, request, params[:key])
|
@current_ability ||= Ability.new(current_user, request, params[:key])
|
||||||
end
|
end
|
||||||
def default_url_options
|
def default_url_options
|
||||||
{locale: I18n.locale, theme: nil , ansicht: nil}
|
{locale: nil, theme: nil , ansicht: nil} # I18n.locale
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -32,8 +32,10 @@
|
|||||||
devise_for :users , :controllers=>{:omniauth_callbacks=> "users/omniauth_callbacks"}
|
devise_for :users , :controllers=>{:omniauth_callbacks=> "users/omniauth_callbacks"}
|
||||||
|
|
||||||
|
|
||||||
scope '(:locale)' do
|
scope '(:locale)', constraints: {:locale=>/en|de/i} do
|
||||||
scope '(t/:theme)' do
|
scope '(t/:theme)' do
|
||||||
|
get "" , controller: :home, action: :index
|
||||||
|
get "intern" , controller: :home, action: :intern
|
||||||
|
|
||||||
scope '(:ansicht)' do
|
scope '(:ansicht)' do
|
||||||
resources :studien, :only=>[:new,:edit,:update,:destroy,:show] do
|
resources :studien, :only=>[:new,:edit,:update,:destroy,:show] do
|
||||||
@@ -107,7 +109,8 @@
|
|||||||
resources :fragen, :only =>[:new, :edit, :update, :destroy, :create]
|
resources :fragen, :only =>[:new, :edit, :update, :destroy, :create]
|
||||||
|
|
||||||
|
|
||||||
resources :neuigkeiten, :only => [:show]
|
resources :neuigkeiten, :only => [:show] , constraints: {id: /\d+/i}
|
||||||
|
get "neuigkeiten", controller: :rubriken, action: :index, as: "neuigkeiten"
|
||||||
resources :rubriken do
|
resources :rubriken do
|
||||||
collection do
|
collection do
|
||||||
get 'verwalten' , :action => :alle_verwalten
|
get 'verwalten' , :action => :alle_verwalten
|
||||||
|
|||||||
Reference in New Issue
Block a user