http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails/
(jruby 1.5.3, Rails version 2.3.5)
jruby -S rails myapp -d mysql
cd myapp
jruby -S rake db:create:all
jruby script/generate scaffold post title:string body:text published:boolean
jruby script/generate model keywords keyword:string source:string
jruby script/generate migrate add_word_to_keywords
jruby -S rake db:migrate
jruby script/server
http://wiki.rubyonrails.org/rails/pages/availablegenerators
http://www.tutorialspoint.com/ruby-on-rails/rails-and-rake.htm
No comments:
Post a Comment