Skip to content

Instantly share code, notes, and snippets.

View xpostudio4's full-sized avatar

Leonardo xpostudio4

View GitHub Profile
@xpostudio4
xpostudio4 / index.md
Last active September 19, 2015 08:59 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@xpostudio4
xpostudio4 / Rails_cheatsheet.md
Last active September 20, 2015 01:59 — forked from freqn/Rails cheatsheet
Rails cheatsheet

Getting Started Reference

Rails new

Basic usage:

$ rails new <app_name>

This will create a directory named: <app_name> that contains a brand new rails app folder structure and boilerplate files.

@xpostudio4
xpostudio4 / BASH.md
Last active August 29, 2015 14:16 — forked from clhenrick/README.md

Bash Cheatsheet

The most common commands so I don't forget!

Directories

  • list files ls
  • list all files (including .dot files) ls -a
  • list all files (with long format) ls -l
  • make directory mkdir [opt] dir

Wagtail tutorial

Thanks to [Serafeim Papastefanos] for authoring this tutorial. Please note that the installation process is in flux; most of the steps here should soon be unnecessary.

[Wagtail] is a new Open Source [Django]-based CMS. In this 20 minute tutorial we will see how you can create a blog from scratch using Wagtail. If you want to see some more examples of usage please take a look at the [wagtaildemo] GitHub project.

To follow this tutorial you will need to have [Python] 2.7 installed with a working version of [pip] and [virtualenv].

Installing the wagtail dependencies