• Stars
    star
    199
  • Rank 195,514 (Top 4 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A cheat sheet for rails beginners, taking care of a lot of basic stuff and information. Aimed at helping beginners too look up stuff. Originally created for my RailsGirls project group.

Rails Beginner Cheat sheet

A cheat sheet for Rails beginners, taking care of a lot of basic stuff and information. Aimed at helping beginners to look up stuff.

You can view this cheat sheet in all its beauty here: http://www.pragtob.info/rails-beginner-cheatsheet/

As opposed to other cheat sheets it isn't necessarily aimed at brevity, but comprehensibility. It also takes care of the very basics, like cd on the command line, that beginners sometimes forget or confuse.

Originally created for my RailsGirls project group, as it became apparent that it would be cool to be able to have a place to look up the common stuff.

How to contribute?

Contributions are very welcome. Just go ahead and open a pull request. Be it corrections, new content or some styling (I haven't exactly mastered styling... yet).

Any contribution will be repaid with eternal gratitude!

Here's how you can make changes.

Fork the repository to your own GitHub account.

Download the project:

$ git clone [email protected]:MyGitHubAcoount/rails-beginner-cheatsheet.git
$ cd rails-beginner-cheatsheet

It is best to create a new branch to contribute (not necessary though):

$ git checkout -b my-new-branch

Make your changes.

Commit and push to the remote repository:

$ git commit -am "some helpful comment"
$ git push origin my-new-branch

Make a pull request (when you check the repository out online at github you should see a big green button to make a pull request shortly after you pushed the branch).

Get the site running locally

To get the site running locally (for development/contribution or trying it out) enter the following commands on your command line in the folder of this repository (after you cloned etc. as described above):

bundle install
jekyll serve

This assumes you already have Ruby installed :)

Now you can visit http://0.0.0.0:4000/ to see the website locally! Yay you!

Generate a PDF

The Rake task create_pdf will write a PDF file from an HTML document. Its default behavior is to create RailsBeginnerCheatSheet.pdf from ./_site/index.html. It runs Jekyll build to ensure the source file is up to date.

rake cheatsheet:create_pdf

The input, output, and formatting can be controlled with command line arguments. Ex:

rake cheatsheet:create_pdf -- --source='./_site/about.html' --dest='./about.pdf'

Arguments

Name Default Value Description
--source ./_site/index.html HTML file from which to create a PDF.
--dest ./RailsBeginnerCheatSheet.pdf Path where output should be written.
--format Letter Paper size format
--orientation Landscape Orientation of the PDF document.

More Repositories

1

after_do

after_do allows you to add simple callbacks to methods
Ruby
113
star
2

deep_merge

Deep (recursive) merge for maps, keywords and others in Elixir
Elixir
99
star
3

rubykon

A Go-Bot written in Ruby. Work not so much in progress anymore but also not quite done πŸ˜…
Ruby
35
star
4

TracketyTrack

A Web-Based User Story Tracker for Agile Teams - so easy even a child could use it
Ruby
18
star
5

wingtips

A nice little presentation written in shoes
Ruby
12
star
6

pomodoro_tracker

A tiny shoes application written to keep track of working items and pomodoros
Ruby
12
star
7

bunny

April's fools for benchmarking 2018.
Elixir
11
star
8

elixir_boards_benchmark

benchmark of multiple different possible representations of a 2D board in elixir
Elixir
8
star
9

cloud9-jasmine-ext

A jasmine test panel/runner for the cloud9 IDE
CoffeeScript
6
star
10

CoffeeRecommender

A recommendation engine written in CoffeeScript and NodeJS
CoffeeScript
6
star
11

infoes

A little client for information services such as RSS-Feeds or Twitter written in Shoes.
Ruby
3
star
12

Puzzlenode-solutions

My solutions to some puzzlenode puzzles
Ruby
3
star
13

minimal_cowboy_tester

Another script to show client connection closing killing the process in cowboy (or its deps).
Elixir
2
star
14

speccr

A testing library for crystal inspired by rspec3 - WIP/does not work yet
Crystal
2
star
15

phoenix_echo

Simple Phoenix Channel application that reacts specially to some requests (useful if you want to build your own phoenix channel client)
Elixir
2
star
16

acceptance_test_speed

Low level speed comparison capybara poltergeist (ruby), wallaby (hound is WIP)
HTML
2
star
17

fizzbuzz

fizzbuzz in different languages
Shell
1
star
18

phoenix_validations_showcase

nothing
Elixir
1
star
19

elixir_playground

just playing around
Elixir
1
star
20

shoes-artoo-sphero

Playing with controlling a sphero from shoes with the help of artoo.
Ruby
1
star
21

magic-support

Some elixir to help with Magic (yes, the card game)
Elixir
1
star
22

ruby_playground

Just some scripts I play around with in ruby
Ruby
1
star
23

bb-matchengine

Prototype of a basketball match engine in ruby
Ruby
1
star
24

web-go

A Go AI running purley on clientside of the web with web workers. Trying to be a hand-in for Mozilla Dev Derby.
CoffeeScript
1
star