내가 고안과 레일을 배우고에서 작업하지 : https://www.sitepoint.com/devise-authentication-in-depth/부트 스트랩이 자습서 다음 로컬 호스트
하는 동안 나는 스타일을위한 부트 스트랩 - 말대꾸를 사용합니다. 응용 프로그램이 Heroku에 앉아있는 곳에서 스타일이로드되는 이상한 문제가 있습니다. 그러나 컴퓨터에서 개발 중일 때 나는 공백의 스타일이없는 양식을 얻습니다. 나는 어딘가에 어떤 설정이나 버전을 변경 (또는 변경하지 않은 것) 한 것처럼 느낀다. 그러나 나는 무엇을 확신 할 수 없다. 왜 Heroku에서 잘 작동하지만 내 컴퓨터에서는 평평하게 떨어지는 지 잘 모르겠습니다.
나는 레일즈 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]