garden_variety

(★ 19)

Delightfully boring Rails controllers

File Explorer

  • .gitignore
  • CHANGELOG.md
  • garden_variety.gemspec
  • Gemfile
  • MIT-LICENSE
  • Rakefile
  • README.md

# Use via CDN

jsDelivr

jsDelivr 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 ▼

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 ▼

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 ▼

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 ▼

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:

// repository documentation