This is a translated page. The original can be found here: http://www.hoshi.it/blog/index.php/2008/06/05/rails-step-1-installazione/
giu 05 June 05

Come accennato in precedenza, avevo in mente di esporre una serie di articoli riguardante il framework Ruby on Rails (giunto pochi giorni fa alla versione 2.1) che sta prendendo sempre più piede tra gli sviluppatori. As mentioned previously, I was planning to expose a series of articles on the framework Ruby on Rails (arrived a few days ago to version 2.1) which is becoming increasingly popular among developers. Ruby on Rails (da adesso semplicemente Rails) è un framework scritto in Ruby per, esattamente come la controparte Java J2EE, lo sviluppo di applicazioni web più o meno complesse. Ruby on Rails (from now just Rails) is a framework written in Ruby, just as the party Java J2EE, web application development more or less complex.

Rails si propone ai programmatori esperti presentando caratteristiche di una facilità disarmante rendendo in certi casi il programmatore persino felice. Rails is proposed to the skilled programmers presenting characteristics of a disarming ease making in certain cases, the programmer even happy. Rails si basa su due concetti: DRY ovvero Don't Repeat Yourself (le definizioni vanno fatte una volta e basta) e COC cioè Convention Over Configuration (ogni configurazione XML va ridotta all'osso). Rails is based on two concepts: DRY, or Do not Repeat Yourself (the definitions are made just once) and COC that Convention Over Configuration (each configuration XML goes down to the bone).

Ma vediamo velocemente come installare (per utenti Windows) un ambiente di sviluppo Rails basilare: But we see quickly how to install (for Windows users) a basic Rails development environment:

  • Scaricare e installare, se non ce l'avete, l'ultima versione dell' interprete Ruby; Download and install, if you do not have the latest version of ' Ruby interpreter;
  • Scaricare l'ultima versione di RubyGems dopo di che estraete il contenuto, aprite una finestra DOS (Start -> Esegui… -> “cmd”) e spostatevi nella directory che avete appena estratto e digitate il comando “ruby setup.rb”. Download the latest version of RubyGems after you extract the contents, open a DOS window (Start -> Run ... -> "cmd") and change into the directory you just extracted and type the command "ruby setup.rb". Attendete qualche minuto. Wait a minute.
  • Sempre tramite DOS, digitate il comando “gem install rails –include-dependencies” (prima di “include” ci vanno DUE TRATTINI, non so perchè ma in questo articolo ne viene mostrato solo uno, attenzione perciò) per avere così Rails sul vostro sistema. Still using DOS, type the command "gem install rails-include-dependencies" (before "includes" there are two dashes, I do not know why but in this article it is shown only one, so careful) to have so Rails on your system . Attendete qualche minuto. Wait a minute. Se tutto è andato bene, provate a eseguire il comando “rails -v” che vi dovrebbe restituire il numero di versione. If all goes well, try running the command "rails-v" you should return the version number.
  • Rails è preimpostato per interfacciarsi con vari database (da MySQL a Sqlite3), avrete perciò bisogno di almeno un DB installato. Rails is preconfigured to interface with various databases (MySQL to sqlite3), so you'll need at least a DB installed. Di default Rails è impostato con Sqlite3 e perciò dovrete scaricare i driver di Sqlite3 per ruby. Rails is set by default so you need to download the sqlite3 and sqlite3 driver for ruby. Nella finestra DOS digitate il comando “gem install sqlite3-ruby” e avere così Rails pronto per interfacciarsi con il database. In the DOS window type the command "gem install sqlite3-ruby" and thus have Rails ready to interface with the database.
  • Vi manca però adesso fisicamente il DB (il DLL praticamente a meno che non lo abbiate già scaricato naturalmente) e perciò prendete da qui il command-line program e il DLL (versioni Windows ovviamente). But now you are missing the physical DB (DLL basically unless you have not already downloaded of course) and so take from here is the command-line program and the DLL (Windows versions of course). Estraete il contenuto e inserite i file nella directory WINDOWS/System32. Extract the contents and put the files in windows/system32.

Adesso è tutto pronto per iniziare, nel prossimo step vedremo direttamente sul campo come genererare una prima applicazione di base funzionante con pochi semplici comandi mostrando così quanto sia potente questo Framework. Now you're ready to start, we will see in the next step directly on the field as a first application genererare working base with a few simple commands and thus show how powerful this Framework. Ciao Hello ;-)

Translate this post Translate this post

Articoli simili Similar Articles

  • Nessun articolo simile trovato No items found similar

Lascia la tua risposta Leave your answer