我使用Rails Composer为这里描述的rails-devise-roles项目创建一个框架应用程序:
https://github.com/RailsApps/rails-devise-roles
我收到由以下内容生成的500错误:
Sass::SyntaxError - ".authform form" failed to @extend ".bg-faded".
The selector ".bg-faded" was not found.
Use "@extend .bg-faded !optional" if the extend should be able to fail.
Run Code Online (Sandbox Code Playgroud)
添加"!optional"标志允许它进行渲染,但不会显示任何导航链接.
我的Gemfile的内容显示如下:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
ruby '2.2.5'
gem 'rails', '~> 5.1.3'
gem 'sqlite3'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
group :development, :test do …Run Code Online (Sandbox Code Playgroud)