Skip to content

Commit

Permalink
FIX devise and jQuery sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
a-barbieri committed Jun 15, 2017
1 parent 432bb5a commit 54b8571
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gemspec
group :development, :test do
gem 'pg'
gem 'pry-rails', '~> 0.3.5'
gem 'rspec-rails', '~> 3.5'
gem 'rspec-rails', '>= 3.5', '< 3.7'
gem 'autoprefixer-rails'
gem 'capybara'
gem 'factory_girl_rails'
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/binda/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

//= require jquery
//= require jquery_ujs
//= require jquery-ui/sortable
//= require jquery-ui/widgets/sortable
//= require tinymce-jquery
//= require binda/dist/binda.bundle.js
10 changes: 5 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
Binda::Engine.routes.draw do

resources :dates
# ROOT
# ----
# https://github.com/plataformatec/devise/wiki/How-To:-Require-authentication-for-all-components
# authenticated :user, class_name: "Binda::User", module: :devise do
# root to: 'settings#index', as: :authenticated_root
# end
# root to: redirect( "users/sign_in")
authenticated :user, class_name: "Binda::User", module: :devise do
root to: 'settings#index', as: :authenticated_root
end
root to: redirect( "users/sign_in" )

root 'settings#dashboard'

Expand Down Expand Up @@ -58,5 +57,6 @@
resources :galleries
resources :assets
resources :repeaters
resources :dates

end

0 comments on commit 54b8571

Please sign in to comment.