Active Admin Routes Error
I tried to install active admin, but im getting a routes error ->
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in
`load':
C:/Users/Phoenix Prime/Documents/GitHub/6invy/config/routes.rb:22: syntax
error, unexpected '\n', expecting tASSOC (SyntaxError)
C:/Users/Phoenix Prime/Documents/GitHub/6invy/config/routes.rb:23: syntax
error, unexpected '}', expecting keyword_end
:registrations => "registrations"},
So i looked in to my routes file and it looks like this
Vinerity::Application.routes.draw do
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
root :to => 'clips#index'
resources :clips
resources :shows
# Flat UI Demo Elements
get "flatuipro_demo/index"
# Help Desk
get 'help' => 'help#home'
get 'help/shows' => 'help#shows'
get 'help/profile' => 'help#profile'
get 'help/clips' => 'help#clips'
get 'getstarted/welcome' => 'get_started#welcome'
devise_for :users, :controllers => { :omniauth_callbacks =>
"users/omniauth_callbacks",
ActiveAdmin.routes(self) <------ It put it here, where the error is
:registrations
=>
"registrations"},
:path => '', :path_names => {:sign_in => 'login'}
# Redirect from users/sign_in to /login
# User Profile
get "users/show"
get 'user/:id' => 'users#show', as: :user
end
Also there is a dependencies problem ?
I'm a little bit lost here.
No comments:
Post a Comment