Wiki内検索
最近更新したページ
2012-06-02
2012-01-15
2012-01-10
2009-06-25
2009-06-23
2008-12-27
2008-12-04
2008-07-20
2008-06-18
2008-06-14
2008-04-18
2008-04-17
2008-03-11
2008-03-09
2008-02-19
2008-02-18
2008-02-17
最新コメント
Gentoo化 by check it out
Gentoo化 by check it out
Ruby on Rails by check it out
Ubuntu by check it out
VisualBasic by canada goose jacket sale
キリスト教とIT by seo thing
VisualBasic by check this out
Gentoo化 by watch for this
Flex by seo thing
Ruby on Rails by tips about seo
Menu
タグ

Ruby on Rails

macでの設定方法

ダウンロード

ruby

http://www.ruby-lang.org/ja/


ruygems

http://docs.rubygems.org/

インストール

Ruby

tar -zxvf ruby-1.9.0-0.tar.gz
cd ruby-1.9.0-0
./cnfigure
make
maketest
sudoo make install

Gem

tar -zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby setup.rb config
ruby setup.rb setup
sudo ruby setup.rb install


Ruby on Rails

export PATH=/usr/local/bin/:$PATH
gem install rails
sudo gem install rails --include-dependencies

本書による環境設定




cd /Volumes/RoR/Gems sudo gem install rake activesupport activerecord actionpack actionmailer actionwebservice rails

script/server 起動する。Ctrl+Cで終了。 http://127.0.0.1:3000/


Trouble Shooting

XAMPP使ったとき。


sockがうまくいかねーよ。

http://b-tech01.blogspot.com/2007/10/no-such-file-...

db_setup

socketにかく。

Railsプロジェクトのconfig/database.ymlを下記のようにします。

adapter: mysql database: データベーススキーマ名 username: root password: root host: localhost socket: /Applications/xampp/xamppfiles/var/mysql/mysql.sock ←これ追加。

MySQLのパスワード設定

これで設定。
/Applications/xampp/xamppfiles/bin/mysqladmin -u root password 3#%KA

MySQL

XAMPPの時のディレクトリ
/Applications/xampp/xamppfiles/bin/mysql

Yahoo!ディベロッパーネットワーク

http://developer.yahoo.co.jp/

GoogleMapAPI

http://code.google.com/apis/maps/index.html
2008年02月17日(日) 09:34:07 Modified by shinriyo




スマートフォン版で見る