[ruby-fr:1419] c'est décidé : je passe a ROR !

View: New views
1 Messages — Rating Filter:   Alert me  

[ruby-fr:1419] c'est décidé : je passe a ROR !

by Marc Chantreux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

salut tous,

Oh joie! jamais je n'avais fais tourner d'applis web aussi rapidement :

% rails vitrine
% cd vitrine
% { for state ( development test production ) print "
$state:
 adapter: sqlite3
 database: db/vitrine_$state.sqlite3
" } > config/database.yml
% cat > db/schema.rb
ActiveRecord::Schema.define() do
  create_table "articles" do |t|
    t.column "nom"         , :string , :limit => 30
    t.column "description" , :text
  end
end
% rake db_schema_import
% sqlite3 db/vitrine_development.sqlite3 <<< .dump
BEGIN TRANSACTION;
CREATE TABLE articles ("id" INTEGER PRIMARY KEY NOT NULL, "nom" varchar(30), "description" text);
COMMIT;
% ./script/generate model Article
% ./script/generate scaffold {,}Article
% ./script/server -b $monip

merci Rails !

--
téléphone : 03.90.24.00.19
courriel  : marc.chantreux@...
---------------------------------------