importmap-view-component-stimulus
Example to replicate "Rails 7 View Component Stimulus" problem
File Explorer
- .keep
- manifest.js
- .keep
- application.css
- application.tailwind.css
- channel.rb
- connection.rb
- .keep
- application_controller.rb
- pages_controller.rb
- example_component.html.erb
- example_component.rb
- example_component_controller.js
- application_helper.rb
- pages_helper.rb
- application.js
- hello_controller.js
- index.js
- application.js
- application_job.rb
- application_mailer.rb
- .keep
- application_record.rb
- application.html.erb
- mailer.html.erb
- mailer.text.erb
- home.html.erb
- bundle
- dev
- importmap
- rails
- rake
- setup
- development.rb
- production.rb
- test.rb
- assets.rb
- content_security_policy.rb
- filter_parameter_logging.rb
- inflections.rb
- permissions_policy.rb
- en.yml
- application.rb
- boot.rb
- cable.yml
- credentials.yml.enc
- database.yml
- environment.rb
- importmap.rb
- puma.rb
- routes.rb
- storage.yml
- tailwind.config.js
- seeds.rb
- fails.png
- fails2.png
- fails3.png
- works.png
- .keep
- .keep
- .keep
- 404.html
- 422.html
- 500.html
- apple-touch-icon-precomposed.png
- apple-touch-icon.png
- favicon.ico
- robots.txt
- .keep
- connection_test.rb
- example_component_test.rb
- .keep
- pages_controller_test.rb
- .keep
- .keep
- .keep
- .keep
- .keep
- .keep
- application_system_test_case.rb
- test_helper.rb
- .keep
- .keep
- .keep
- .keep
- .keep
- .gitattributes
- .gitignore
- .ruby-version
- config.ru
- Gemfile
- Gemfile.lock
- Procfile.dev
- Rakefile
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bundle
View Details ▼
bundle
Dependency manager for the Ruby programming language.
bundle install
Install all gems defined in the `Gemfile` expected in the working directory:
bundle exec {{command}} {{arguments}}
Execute a command in the context of the current bundle:
bundle update
Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
rails new
View Details ▼
rails new
Create a new Rails application.
rails new blog
Create a Rails app named `blog` in the current directory:
rails new {{app_name}} --api
Create a Rails app with API-only configuration:
rails new {{app_name}} {{[-d|--database]}} postgresql
Create a Rails app with `postgresql` as the database:
