swfupload 上传文件rails应用例子

 

http://cameronyule.com/2008/07/rails-21-swfupload-example

 

1.下載rails2.1.2
2.下載swfupload-rails-authentication
3.解壓copy rails到vendor,執行rake rails:update
4.在environment.rb中有設置
  config.gem 'mini_magick'
  config.gem 'mime-types', :lib => 'mime/types'
  如果沒有安裝以上gem,執行rake或啟動時則報以下錯誤:
  undefined method `ruby_version' for Gem
5.檢查已安裝的gem:gem list --local
6.創建資料庫:rake db:create:all
7.
rake db:schema:load RAILS_ENV=production
rake db:fixtures:load RAILS_ENV=production
script/server
8.login
username: quentin
password: monkey

你可能感兴趣的:(Ruby,Rails)