Recent RubyMine versions allow to specify what web server to use in the Rails Run/Debug configuration:
There are 2 server1.webric &2.mongrel
follow these steps to use mongrel server instead of webric...
(1) go to cmd
(2) go to application path.
(3) write down this code "mongrel_rails start"