garden_variety
Delightfully boring Rails controllers
File Explorer
- ci.yml
- test
- rails-8.1.gemfile
- actions.rb
- controller.rb
- current_user_stub.rb
- railtie.rb
- talent_scout.rb
- version.rb
- flash.en.yml
- install_generator.rb
- scaffold_generator.rb
- optimized_generate_action.rb
- garden_variety.rb
- manifest.js
- channel.rb
- connection.rb
- .keep
- application_controller.rb
- posts_controller.rb
- application_helper.rb
- posts_helper.rb
- application_job.rb
- application_mailer.rb
- .keep
- application_record.rb
- post.rb
- application_policy.rb
- post_policy.rb
- application.html.erb
- mailer.html.erb
- mailer.text.erb
- _form.html.erb
- create.js.erb
- destroy.js.erb
- edit.html.erb
- index.html.erb
- new.html.erb
- show.html.erb
- update.js.erb
- bundle
- rails
- rake
- setup
- update
- yarn
- development.rb
- production.rb
- test.rb
- application_controller_renderer.rb
- backtrace_silencers.rb
- cookies_serializer.rb
- filter_parameter_logging.rb
- inflections.rb
- mime_types.rb
- wrap_parameters.rb
- en.yml
- flash.en.yml
- application.rb
- boot.rb
- cable.yml
- database.yml
- environment.rb
- puma.rb
- routes.rb
- spring.rb
- 20171121194028_create_posts.rb
- schema.rb
- .keep
- .keep
- 404.html
- 422.html
- 500.html
- apple-touch-icon-precomposed.png
- apple-touch-icon.png
- favicon.ico
- posts_controller_test.rb
- posts.yml
- post_test.rb
- post_policy_test.rb
- config.ru
- package.json
- Rakefile
- controller_test.rb
- generator_test_case.rb
- install_generator_test.rb
- integration_test.rb
- scaffold_generator_test.rb
- talent_scout_generator_test.rb
- talent_scout_test.rb
- test_helper.rb
- .gitignore
- CHANGELOG.md
- garden_variety.gemspec
- Gemfile
- MIT-LICENSE
- 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`:
edit
View Details ▼
edit
A terminal-based text editor from Microsoft.
edit {{path/to/file}}
Open a file:
tldr run-mailcap
View documentation for the original command:
<Ctrl f>{{pattern}}<Enter>
Search for a pattern:
rails generate
View Details ▼
rails generate
Generate new Rails templates in an existing project.
rails generate
List all available generators:
rails generate model {{Post}} {{title:string}} {{body:text}}
Generate a new model named Post with attributes title and body:
rails generate controller {{Posts}} {{index}} {{show}} {{new}} {{create}}
Generate a new controller named Posts with actions index, show, new, and create:
route
View Details ▼
route
Show and manipulate the route table.
route -n
Display the information of route table:
sudo route add "{{destination_ip_address}}" "{{gateway_address}}"
Add a route to a destination through a gateway:
sudo route add -net {{ip_address}} netmask {{netmask_address}} gw {{gw_address}}
Add route rule:
