我的申请正在破产,我无法弄清楚原因.这是完整的系统堆栈跟踪.
sass (3.4.9) lib/sass/importers/filesystem.rb:14:in `initialize'
compass-rails (2.0.1) lib/compass-rails/patches/sass_importer.rb:12:in `new'
compass-rails (2.0.1) lib/compass-rails/patches/sass_importer.rb:12:in `block in evaluate'
compass-rails (2.0.1) lib/compass-rails/patches/sass_importer.rb:12:in `map'
compass-rails (2.0.1) lib/compass-rails/patches/sass_importer.rb:12:in `evaluate'
tilt (1.4.1) lib/tilt/template.rb:103:in `render'
sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate'
sprockets (2.12.3) lib/sprockets/context.rb:194:in `each'
sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate'
sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize'
sprockets (2.12.3) lib/sprockets/base.rb:374:in `new'
sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset'
sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection'
sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset'
sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset'
sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset'
sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset'
sprockets (2.12.3) lib/sprockets/base.rb:287:in …Run Code Online (Sandbox Code Playgroud) 我在安装设备时为两个用户模型生成了视图/控制器.无论出于何种原因,包含在gem内部的视图都将被渲染,而不是我添加的视图.
/views/users/registrations/new.html.erb
/views/bizusers/registrations/new.html.erb
Run Code Online (Sandbox Code Playgroud)
当前路由配置
devise_for :biz_users, path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'register' }
devise_for :users, path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'register' }
devise_for :admins, path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'register' }
Run Code Online (Sandbox Code Playgroud)
我之前以不同的方式解决了这个问题,但是由于需要为用户分离关注点而难以管理.可以帮你解决这个问题吗?