$ sudo apt-get install libdjvulibre-dev libjpeg-dev libtiff-dev libwmf-dev libmagickcore-dev libmagickwand-dev libmagick++-dev
$ sudo gem install rmagick
$ killall skype -s 9 sudo apt-get update sudo apt-get install build-essential git-core curl libmysqlclient16-dev nodejs
sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) umask g+w source /etc/profile.d/rvm.sh
rvm requirements
The program 'rvm' is currently not installed. You can install it by typing:
sudo apt-get install ruby-rvm
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
sudo chown -R [user]:[user] /usr/local/rvm
rvm install 1.9.2
source "/usr/local/rvm/scripts/rvm" rvm --default use 1.9.2
ruby -v
gem install rails
rails new [project name]
sudo apt-get install mysql-server
gem install mysql2
rails new [project name] -d mysql
<strong><%= item.title %></strong>
%strong= item.title
%strong, %div, %body, %html; any tag you want. Then, after the name of the tag is =, which tells Haml to evaluate Ruby code to the right and then print out the return value as the contents of the tag. Unlike the ERB above, Haml will automatically detect newlines in the return value and format the tag properly.<strong class="code" id="message">Hello, World!</strong>
%strong{:class => "code", :id => "message"} Hello, World!
class attribute is “code”, the id attribute is “message”. Notice that in this example, we didn’t use =, so “Hello, World!” is interpreted as a normal string, not Ruby code.class and id are such common attributes and since most designers (and coders) are familiar with CSS, we can use similar notation to describe this tag.%strong.code#message Hello, World!
div tags are so common, you can leave off the tag definition and have it default to %div..content Hello, World!
<div class='content'>Hello, World!</div>
<div class='item' id='item<%= item.id %>'> <%= item.body %> </div>
.item{:id => "item#{item.id}"}= item.body
<div id='content'>
<div class='left column'>
<h2>Welcome to our site!</h2>
<p><%= print_information %></p>
</div>
<div class="right column">
<%= render :partial => "sidebar" %>
</div>
</div>
#content
.left.column
%h2 Welcome to our site!
%p= print_information
.right.column
= render :partial => "sidebar"