ruby on rails - Simple RoR app not working -


i've installed ruby 1.8.7 , rails 2.3.14 on ubuntu 12.04 lts. know because visiting localhost:3000 shows me page says "welcome aboard...you're riding ruby on rails!"

i'm following "beginning ruby on rails" steven holzner written in 2007 create first ror application. i've done following:

  1. myshellprompt:~/rubydev$ rails hello

  2. myshellprompt:~/rubydev$ cd hello; ruby script/generate controller app

  3. in app_controller.rb added class body

    def greeting end 
  4. i created greeting.rhtml in rubydev/hello/app/views/app

    <html>   <head>     <title>ruby on rails</title>   </head>   <body>     <h1>yes it's working</h1>   </body> </html> 
  5. myshellprompt:~/rubydev/hello$ ruby script/server

when go localhost:3000/app/greeting, error says "we're sorry, went wrong" instead of "yes it's working!"

i noticed when executed of commands got lot of "deprecated" messages. went wrong? thanks.

like suggestion in comment. ditch old versions of ruby , rails outdated , you'll pretty have re-learn new things on newer versions.

as tutorials take @ excellent tutorial michael hartl called rails 0 deploy

it'll guide through building app deploying , using git tdd (test driven development) .

as actual question, can post routes.rb file better?

also, if can provide server logs show backtrace.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -