라벨이 Rails인 게시물 표시

map.root - rourts.rb (root 변경)

config/routes.rb map.root :controller => "customers" 라고 변경을 해도 root변경이 안되길래 ...찾았더니 -.- public/index.html지워야지! 암뇨~   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.   # map.root :controller => "welcome"   1년이 지나서 고칠 생각을 하는 나도 참...

Mysql::Error: query: not connected

MySql 5.1 Client가 Rails 2.3에서 작동하지 않고 아래 에러 만들 때   libmySQL.dll 받아 rubyhome/bin폴더에 추가   rake aborted! Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB (See full trace by running task with --trace)   [1] http://forums.aptana.com/viewtopic.php?f=20&t=7563&p=27407&hilit=libmysql.dll#p27407 [2] http://stackoverflow.com/questions/1343500/ruby-on-rails-connection-problem [3] libmySQL.dll : http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll