Activeadmin accepts angular js routes, not routes

I have an existing application with Rails 3.2.17and angular js. I would like to include Activeadmin in an existing application.

I followed the steps from the active-admin message from rayan bates . I performed the following processes:

  • Added gem activeadminto Gemfile
  • Run bundle install
  • rails g active_admin:install --skip-users (as I already developed)
  • Run rake db:migrate
  • Reboot server

I have the following routes if I run rake routes:

          admin_root             /admin(.:format)                                                           admin/dashboard#index
          admin_dashboard GET    /admin/dashboard

When will I go to localhost:3000/admin. The page is redirected to the angular homepage, which has the following code:

<div ng-view></div>

activeadmin angular, , app/admin/dashboard.rb, application.html.erb rails. application.html.erb, angular.js. - , angular activeadmin?

+4
1

activeadmin angular, , angular . angular '#', - . , angular, '#', https://scotch.io/quick-tips/pretty-urls-in-angularjs-removing-the-hashtag

, , .

0

Source: https://habr.com/ru/post/1599525/


All Articles