RoR demo_app (R2)

rails demo_app

cd demo_app

script/generate scaffold User name:string email:string

rake db:migrate
(若是出現no such file to load — sqlite3,但是明明有安裝sqlite3, how to solve?)
===>http://www.ruby-forum.com/topic/144703

Suggestion is DO NOT using sqlite3-ruby version =1.2.2, try to using
version 1.2.1.
I fixed it this same problem, through:
# gem uninstall sqlite3-ruby
# gem install sqlite3-ruby -v=1.2.1

script/generate scaffold Micropost content:string user_id:integer
Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • MySpace
  • Plurk
  • RSS
  • Google Buzz
  • Live
本篇發表於 Rails 2。將永久鏈結加入書籤。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *