ruby on rails LoadError in

Action Controller: Exception caught

LoadError in RecipesController#index

127: ์ง€์ •๋œ ํ”„๋กœ์‹œ์ €๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.   - c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/

RAILS_ROOT: D:/aptana/Guestbook


Rendering c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/templates/rescues/layout.erb (not_found)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
ontroller/templates/rescues/layout.erb (not_found)

php ์˜ libmysql.dll ์„ /ruby/bin/ย  ์— copy


setting of RoR

์ถœ์ฒ˜ :

1. Ruby 1.86 ๋ฒ„์ „์„ ์„ค์น˜ํ•œ๋‹ค.
2. Eclipse 3.3 ๋ฒ„์ „์„ ์„ค์น˜ํ•œ๋‹ค. – Ruby ๊ฐœ๋ฐœ์„ ์œ„ํ•ด, DLTK๋ฅผ SW Update๋ฅผ ์ด์šฉํ•˜์—ฌ ์„ค์น˜ํ•œ๋‹ค.
3. Rails๋ฅผ ์„ค์น˜ํ•œ๋‹ค. – gem install rails ๋ผ๊ณ  ๋„์Šค ๋ช…๋ น์ฐฝ์— ์ž…๋ ฅํ›„ ์•คํ„ฐ (Y/N ํ™•์ธ์„ ํ•ด์•ผ ํ•œ๋‹ค.) – ๋‹ค์Œ๊ณผ ๊ฐ™์ด Dependency ์˜ต์…œ์„ ์ฃผ๋ฉด ์ž๋™์œผ๋กœ ์„ค์น˜ํ•œ๋‹ค. gem install rails –include-dependencies
4. Eclipse๋ฅผ ์œ„ํ•œ aptana ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์„ค์น˜( – aptana ์‚ฌ์ดํŠธ์—์„œ, RedRails ํ”Œ๋Ÿฌ๊ทธ์ธ์„ Eclipse์— ์„ค์น˜ํ•œ๋‹ค. ์ดํด๋ฆฝ์Šค์—์„œ Rails ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค์–ด์„œ ์‚ฌ์š”ํ•˜๋ฉด ๋˜๋Š”๋ฐ, ์ด๋Š” ๋‹ค์Œ์„ ์ฐธ์กฐํ•œ๋‹ค.

rails ์„ค์น˜

gem instll rails

gem instll rails -y

gem update –system

Continue reading