How to run the application Rubyonrails's on the server (localhost)

i have download the source code of ,this is a rubyonrails applcation.but i dont know how to run it on my computer. i have installed ruby,rails,apache,mysql(Just install) Besides this i know nothing.

please somebody help how to run the rubyonrails applcation at server at own computer

Thanks in advance


If you have created your app then got to your rails directory and run “script/server” If app is not craeted then run “rails demo”, it will create a rails app named with demo

Also, before running command “script/server”, run rake db:migrate in demo directory path to populate the DB but you need to create teh db first if using Mysql or Postgresql.