Chapter 1 Flashcards
What is rails?
web development framework written in the ruby programming language
installing rails with a specific version number
$ gem install rails -v 4.2.2
-v flag
ensures the specified version gets installed
shell command:
change to home directory
make a workspace directory
then change into it
$ cd # Change to the home directory.
$ mkdir workspace # Make a workspace directory.
$ cd workspace/ # Change into the workspace directory.
what is bash
shell comman line interface
shell: list contents
ls: $ls -l
make directory shell
mkdir : $ mkdir workspace
shell:change directory
cd : $ cd workspace/
shell cd one directory up
$ cd..
shell cd to home directory
$ cd ~ or just $ cd
cd to path including home directory
$cd ~/workspace/
move file(rename) shell
mv : $mv README.rdoc README.md
copy file in shell
cd : $ cp README.rdoc README.md
remove file
rm : $ rm README.rdoc
remove empty directory shell
rmdir : $ rmdir workspace/
remove nonempty directory
rm -rf : $ rm -rf tmp/
concatenate and display file contents
cat : $ cat ~/.ssh/id_rsa.pub
command to run rails at version 4.2.2
rails 4.2.2 new hello_app
app/
core application code, including models, views, controllers, and helpers
app/assets
assets such as CSS, JavaScript files, and images
bin/
binary executable files
config
application configuration
db/
database files
doc/
documentation for the application
lib/
library modules
lib/assets
library assets such as CSS, JavaScript files, and images
log/
app log files
public/
data accessible to the public (e.g., via web browsers), such as error pages
bin/rails
a program for generating code, opening console sessions, or starting a local server
test/
app tests
tmp/
temporary files
vendor/
third-party code such as plugins and gems
vendor/assets
third-party assets such as CSS, JavaScript files, and images
README.rdoc
a brief description of the application