Giter VIP home page Giter VIP logo

believec / rails-beginner-cheatsheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pragtob/rails-beginner-cheatsheet

0.0 2.0 0.0 1.34 MB

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.

License: MIT License

Ruby 1.85% HTML 89.67% JavaScript 0.20% CSS 8.27%

rails-beginner-cheatsheet's Introduction

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.

rails-beginner-cheatsheet's People

Contributors

pragtob avatar fabienalbi avatar danielkehoe avatar ramya-n avatar bkleinen avatar blairanderson avatar harshadsabne avatar sabelard avatar abelards avatar javadevvictoria avatar nn250 avatar

Watchers

James Cloos avatar Chaitanya Yadav avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.