Mudanças entre as edições de "Ruby on Rails"
De Pontão Nós Digitais
Linha 8: | Linha 8: | ||
= Instalação = | = Instalação = | ||
− | <pre>$ sudo apt-get install ruby</pre><pre>$sudo apt-get install rubygems1.8</pre><pre>$gem install rails</pre> | + | <pre>$ sudo apt-get install ruby</pre><pre>$sudo apt-get install rubygems1.8</pre><pre>$gem install rails</pre> |
<br> | <br> | ||
= Criando um programa = | = Criando um programa = | ||
− | <pre>$ rails new <nome_do_app></pre><pre>$ cd <nome_do_app></pre><pre>$ rails server</pre> | + | <pre>$ rails new <nome_do_app></pre><pre>$ cd <nome_do_app></pre><pre>$ rails server</pre> |
− | Se der erro por falta de Gems: | + | Se der erro por falta de Gems: |
<pre> $ bundle install | <pre> $ bundle install | ||
wait... | wait... | ||
$ rails server | $ rails server | ||
− | </pre> | + | </pre> |
− | Em seguida: | + | Em seguida: |
− | Acesse http://localhost:3000/<br><br> | + | Acesse http://localhost:3000/<br><br> |
− | Siga as instruções que apareceram. | + | Siga as instruções que apareceram. |
− | == Guias == | + | == Guias == |
− | *[http://guides.rubyonrails.org/getting_started.html The Getting Started Guide] | + | === Rails === |
+ | |||
+ | *[http://guides.rubyonrails.org/getting_started.html The Getting Started Guide] | ||
*[http://www.railstutorial.org/ Ruby on Rails Tutorial Book] | *[http://www.railstutorial.org/ Ruby on Rails Tutorial Book] | ||
+ | |||
+ | === Ruby === | ||
+ | |||
+ | *[http://www.ruby-doc.org/docs/ProgrammingRuby/ Programming Ruby] |
Edição das 12h49min de 19 de julho de 2011
Paginas Oficiais
Instalação
$ sudo apt-get install ruby
$sudo apt-get install rubygems1.8
$gem install rails
Criando um programa
$ rails new <nome_do_app>
$ cd <nome_do_app>
$ rails server
Se der erro por falta de Gems:
$ bundle install wait... $ rails server
Em seguida:
Acesse http://localhost:3000/
Siga as instruções que apareceram.