Chapter 1 Flashcards
scaffolding define:
generating code. quicker, easier, more seductive.
ruby on rails:
web development framework written in ruby.
what makes rails so great?
open source. easy to write web applications: generating html, making data models, routing URL’s are easy with rails. also follows REST architectural style. great for rapid prototype
IDE:
integrated development enviroment. programming enviroment consisting of code editor, compiler, debugger, and more. (eclipse)
command to install rails at version 4.2.2
gem install rails -v 4.2.2
-v flag
ensures specified version gets installed
how do we install packages
use gem command provided by the rubygems package manager
bash:
shell command-line interface. (linux command line)
ls -l
lists the contents of the directory. -l lists more
mkdir
creates directory
cd
change directory
cd ..
go up a directory
cd ~ or cd
change to home directory
cd ~/workspace
go to home directory and go to workspace
mv README.rdoc README.md
move file (rename)
cp README.rdoc README.md
copy file
rm README.rdoc
delete file
rmdir workspace
remove empty directory
rm -rf tmp
remove nonempty directory
cat ~/.ssh/id_rsa.pub
display file
command to run rails at specific version
rails 4.2.2 new hello_app
app/
core application code, including models, views, controllers, and helpers
app/assets
applications assets such as css, javascript, and images
bin/
binary executable files
cofig/
application configuration
db/
database files
doc/
documentation for the application
lib/
library modules
lib/assets
library assets such as css, javascript, and images
log/
application log files
public/
data accessible to the public (via web browser) such as error pages
bin/rails
a program for generating code, opening console sessions, or starting a local server
test/
application tests
tmp/
temporary files
vendor/
third-party code such as plugins and gems