Почему мое приложение Rails composer не распознает CSS и макет приложения?
Я экспериментирую с Rails Composer из проекта приложений Rails и на данный момент создал 3 демо-приложения. В одном из них я следовал инструкциям из обучающего видео Дэниела Кехо и использовал загрузчик 3.3, и это, похоже, сработало. Два других я использовал загрузчик 4, так как я хотел использовать функцию слайдера изображений. Это единственная большая разница между приложениями. Теперь я получаю корневую страницу с просто "Добро пожаловать" и "Пользователи: 0 зарегистрированных", которая является содержимым представления index.html.erb, полностью не отформатированная.
Поэтому проблема в том, что в моем последнем эксперименте работает Rails composer, но на сайте нет содержимого HTML или CSS, то есть нет навигационной панели, ссылок, верхних и нижних колонтитулов и т. Д. Когда я проверяю HTML, весь HTML-код присутствует, поэтому погрузка. Я просто не могу понять, почему он не загружается. Может ли быть проблема с использованием начальной загрузки 4 или по какой-то другой причине, что контент не отображается?
ниже приведены варианты создания приложения:
C:\Sites>rails new composerapp1 -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
create
create README.md
create Rakefile
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in C:/Sites/composerapp1/.git/
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/cable.yml
create config/puma.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_1.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create package.json
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_1.rb
apply https://raw.github.com/RailsApps/rails-composer/master/composer.rb
composer
composer _____ _ _
composer | __ \ (_) | /\
composer | |__) |__ _ _| |___ / \ _ __ _ __ ___
composer | _ // _` | | / __| / /\ \ | '_ | '_ \/ __|
composer | | \ \ (_| | | \__ \/ ____ \| |_) | |_) \__ \
composer |_| \_\__,_|_|_|___/_/ \_\ .__/| .__/|___/
composer | | | |
composer | | | |
composer
composer Need help? Ask on Stack Overflow with the tag 'railsapps.'
composer Your new application will contain diagnostics in its README file.
composer You are using Rails version 5.1.5. Please report any issues.
insert config/application.rb
recipe Running core recipe...
core selected all core recipes
recipe Running git recipe...
git initialize git
remove .gitignore
create .gitignore
run git init from "."
Reinitialized existing Git repository in C:/Sites/composerapp1/.git/
run git add -A from "."
run git commit -qm "rails_apps_composer: initial commit" from "."
recipe Running railsapps recipe...
option Build a starter application?
1) Build a RailsApps example application
2) Contributed applications (none available)
3) Custom application (experimental)
choose Enter your selection: 1
option Choose a starter application.
1) learn-rails
2) rails-bootstrap
3) rails-foundation
4) rails-mailinglist-activejob
5) rails-omniauth
6) rails-devise
7) rails-devise-roles
8) rails-devise-pundit
9) rails-signup-download
10) rails-stripe-checkout
11) rails-stripe-coupons
choose Enter your selection: 8
Get on the mailing list for Rails Composer news?
option Enter your email address:
recipe Running learn_rails recipe...
recipe Running rails_bootstrap recipe...
recipe Running rails_foundation recipe...
recipe Running rails_omniauth recipe...
recipe Running rails_devise recipe...
recipe Running rails_devise_roles recipe...
recipe Running rails_devise_pundit recipe...
recipe Running rails_signup_download recipe...
recipe Running rails_mailinglist_activejob recipe...
recipe Running rails_stripe_checkout recipe...
recipe Running rails_stripe_coupons recipe...
recipe Running rails_stripe_membership_saas recipe...
recipe Running setup recipe...
setup Your operating system is mingw32.
setup You are using Ruby version 2.2.6.
setup You are using Rails version 5.1.5.
option Web server for development?
1) Puma (default)
2) Thin
3) Unicorn
4) Phusion Passenger (Apache/Nginx)
5) Phusion Passenger (Standalone)
choose Enter your selection: 1
option Web server for production?
1) Same as development
2) Thin
3) Unicorn
4) Phusion Passenger (Apache/Nginx)
5) Phusion Passenger (Standalone)
choose Enter your selection: 1
option Database used in development?
1) SQLite
2) PostgreSQL
3) MySQL
choose Enter your selection: 2
option Template engine?
1) ERB
2) Haml
3) Slim
choose Enter your selection: 1
option Test framework?
1) None
2) RSpec
choose Enter your selection: 1
option Front-end framework?
1) None
2) Bootstrap 4.0
3) Bootstrap 3.3
4) Bootstrap 2.3
5) Zurb Foundation 5.5
6) Zurb Foundation 4.0
7) Simple CSS
choose Enter your selection: 2
option How to install jQuery?
1) Add jquery-rails gem
2) Add using yarn
choose Enter your selection: 1
setup The Devise 'forgot password' feature requires email.
option Add support for sending email?
1) None
2) Gmail
3) SMTP
4) SendGrid
5) Mandrill
choose Enter your selection: 4
option Devise modules?
1) Devise with default modules
2) Devise with Confirmable module
3) Devise with Confirmable and Invitable modules
choose Enter your selection: 1
option Admin interface for database?
1) None
2) Thoughtbot Administrate
choose Enter your selection: 2
create config/railscomposer.yml
append config/railscomposer.yml
recipe Running locale recipe...
recipe Running readme recipe...
recipe Running gems recipe...
insert Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
run git add -A from "."
run git commit -qm "rails_apps_composer: Gemfile" from "."
recipe Running tests recipe...
recipe Running email recipe...
recipe Running devise recipe...
recipe Running omniauth recipe...
recipe Running roles recipe...
recipe Running frontend recipe...
recipe Running pages recipe...
recipe Running init recipe...
recipe Running analytics recipe...
option Install page-view analytics?
1) None
2) Google Analytics
3) Segment.com
choose Enter your selection: 1
recipe Running deployment recipe...
option Prepare for deployment?
1) no
2) Heroku
3) Capistrano
choose Enter your selection: 2
deployment installing gems for Heroku
recipe Running extras recipe...
option Disable Rails Turbolinks? (y/n) n
option Set a robots.txt file to ban spiders? (y/n) n
option Create a GitHub repository? (y/n) y
create .ruby-version
create .ruby-gemset
extras recipe adding better_errors gem
composer Installing Bundler (in case it is not installed).
run gem install bundler from "."
Successfully installed bundler-1.16.1
Parsing documentation for bundler-1.16.1
Done installing documentation for bundler after 12 seconds
1 gem installed
Мне пришлось обрезать остальное творение из-за его длины.