Hi, I create my rails application called 'demo', then run 'script/server'. Browse URL: http://localhost:3000/. It displayes default page 'Welcome aboard' page. Then run 'ruby script/generate controller Say' command Following massages will displayed on screen : exists app/controllers/ exists app/helpers/ create app/views/say exists test/functional/ create app/controllers/say_controller.rb create test/functional/say_controller_test.rb create app/helpers/say_helper.rb After that I edit 'say_controller.rb' in app/controllers as class SayController < ApplicationController def hello end end Then create 'hello.rhtml' file in app/views folder hello.rhtml <html> <head> <title>Hello, Rails!</title> </head> <body> <h1>Hello from Rails!</h1> </body> </html> When I browse URL: http://localhost:3000/say/hello It Gives an following massage. We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. What to do??? Is i missing any configuration? Please help me out. Thanks and Regards, Sachin Khot
on 2009-05-17 12:41
on 2009-06-02 15:11
Hello, Please check your project_name/log/developmet.log to find something went wrong. Did you install database engine for rails? Try to install database engine & try again. http://www.mysql.org http://www.sqlite.org/ Regards, Hank Wang
on 2009-07-17 15:31
Han-hong Wang wrote: > Hello, > > Please check your project_name/log/developmet.log to find something went > wrong. > > Did you install database engine for rails? > > Try to install database engine & try again. > > http://www.mysql.org > http://www.sqlite.org/ > > Regards, > Hank Wang i have the same error and i already installed mysql database but there is that error "Unused local variable load_error" in config/boot.rb in the line rescue Gem::LoadError => load_error $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) exit 1 end
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.