- Delete README.md
rails new blog
cd blog
find . -maxdepth 1 -exec mv {} .. \;
cd ..
rmdir blog
- Continue with the Getting Started Guide
Last active
October 9, 2015 15:25
-
-
Save paultyng/5e0554c73ff0b5684d27 to your computer and use it in GitHub Desktop.
C9 Rails Getting Started
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Append to your config/boot.rb file | |
# from http://stackoverflow.com/a/29562898/973292 | |
require 'rails/commands/server' | |
module Rails | |
class Server | |
def default_options | |
super.merge(Host: ENV['IP'], Port: ENV['PORT']) | |
end | |
end | |
end |
A design pattern is a reusable solution to a common software problem. It's not necessarily code, just a general structure / idea that make it easier for devs to communicate about how something works.
For example jQuery use a Fluent Interface, which is the name for the pattern of chaining all your method calls together (ie. $('element').css(color: 'red').show();
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment