我学习的Rails与设计工作,并按照本教程:https://www.sitepoint.com/devise-authentication-in-depth/引导不是在本地主机
在这期间我使用引导-萨斯的造型。我遇到了一个奇怪的问题,即在应用程序位于Heroku上的生产环境中加载样式,但在我的计算机上进行开发时,我只是得到了空白的未格式化表单。我感觉好像我改变了(或者没有改变)某个地方的某些设置或版本,但我不确定是什么。我不确定为什么在Heroku上可以正常工作,但是在我自己的电脑上却没有问题。
我正在使用Rails 5.下面是我的Gemfile的副本,是否有帮助。我会根据需要提供其他文件/信息。
source 'https://rubygems.org'
#ruby version
ruby "2.3.1"
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use Bootstrap for styling
gem 'bootstrap-sass'
# Use Devise for authentication
gem 'devise'
# Fix issues with Bootstrap dropdown menu, Javascript, and Turbolinks
gem 'jquery-turbolinks'
# Perform email sending in background
#gem 'delayed_job_active_record'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
gem 'rails-controller-testing', '0.1.1'
gem 'minitest-reporters', '1.1.9'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]