1、下载rforum
http://rforum.andreas-s.net
或使用SVN下载最新版本
2、在mysql中新建一个数据库:rforum
3、修改config/database.yml
# Uncomment this section for MySQL:
production:
adapter: mysql
host: localhost
database: rforum
username: root
password:
development:
adapter: mysql
database: rforum
username: root
password:
host: localhost
test:
adapter: mysql
database: rforum
username: root
password:
host: localhost
4、安装数据库
set RAILS_ENV=production
rake migrate
关于migrate的说明:
http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations
如果安装过程中提示找不到ferret:
gem install ferret
5、配置action mailer
根据原文,复制config/default_site.rb到site.rb
取消site.rb中最后一部分关于actionmailer的注释,并配置smtp服务器:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => 'mail.google.com', # replace with your SMTP server
:port => 25, # replace with your SMTP server's port
:domain => 'eastviking.com', # replace with your HELO domain
:user_name => 'eastviking', # set if your SMTP server requires authentication
:password => 'xxxxxxxxxxxx', # set if your SMTP server requires authentication
:authentication => :login, # set to true if your SMTP server requires authentication
}
6、ruby script/server
7、http://localhost:3000/user/register
注册一个用户:admin
指定管理员
ruby script/make_admin admin
8、原文
http://rforum.andreas-s.net/rdoc/files/README.html