|
|
# Como instalar e configurar o framework RubyOnRails
|
|
|
|
|
|
1. Instalar o RVM (Ruby Version Manager)
|
|
|
<pre>
|
|
|
$ \curl -sSL https://get.rvm.io | bash -s -- --ignore-dotfiles
|
|
|
$ echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
|
|
|
</pre>
|
|
|
|
|
|
2. Reinicie o bash para ativar as configurações do arquivo ".bash_profile"
|
|
|
<pre>
|
|
|
$ bash
|
|
|
</pre>
|
|
|
|
|
|
3. Instalar o Ruby 2.2
|
|
|
<pre>
|
|
|
$ rvm install 2.2
|
|
|
</pre>
|
|
|
|
|
|
4. Instalar o Rails
|
|
|
<pre>
|
|
|
$ gem install rails
|
|
|
</pre> |