Template is missing statement

Discussion in 'Ruby' started by Boris Vom grund, Jul 18, 2010.

  1. Hi folks. Listen I got a problem.
    Just starts wirth ruby. Everything is installed
    and when I check the lacalhost Site, evrything is running well
    So I start doing an new application named say.

    I got a class Say Controller

    saved: demo/app/controllers/say_controller.rb

    class SayController < ApplicationController
    def hello
    end
    end

    and a html.erb
    Gespeichert : demo/app/views/say/hello.html.erb

    <html>
    <head>
    <title>Hello, Rails!</title>
    </head>
    <body>
    <h1>Hello from Rails!</h1>
    </body>
    </html>

    In the website output :

    Missing template
    demo/app/views/say/hello.rhtml

    What can I do???
    --
    Posted via http://www.ruby-forum.com/.
     
    Boris Vom grund, Jul 18, 2010
    #1
    1. Advertising

  2. Do you notice any difference between the two filenames?
    Let's see...
    demo/app/views/say/hello.html.erb
    demo/app/views/say/hello.rhtml

    On Sun, Jul 18, 2010 at 9:44 PM, Boris Vom grund <> wrote:
    > Hi folks. Listen I got a problem.
    > Just starts wirth ruby. Everything is installed
    > and when I check the lacalhost Site, evrything is running well
    > So I start doing an new application named say.
    >
    > I got a class Say Controller
    >
    > saved: demo/app/controllers/say_controller.rb
    >
    > class SayController < ApplicationController
    > def hello
    > end
    > end
    >
    > and a html.erb
    > Gespeichert : demo/app/views/say/hello.html.erb
    >
    > <html>
    > <head>
    > <title>Hello, Rails!</title>
    > </head>
    > <body>
    > <h1>Hello from Rails!</h1>
    > </body>
    > </html>
    >
    > In the website output :
    >
    > Missing template
    > demo/app/views/say/hello.rhtml
    >
    > What can I do???
    > --
    > Posted via http://www.ruby-forum.com/.
    >
    >




    --
    Michael Fellinger
    CTO, The Rubyists, LLC
     
    Michael Fellinger, Jul 18, 2010
    #2
    1. Advertising

  3. Boris Vom grund wrote:
    > Hi folks. Listen I got a problem.
    > Just starts wirth ruby. Everything is installed
    > and when I check the lacalhost Site, evrything is running well
    > So I start doing an new application named say.
    >
    > I got a class Say Controller
    >
    > saved: demo/app/controllers/say_controller.rb


    You haven't actually said so, but I'm going to guess you're working with
    Rails.

    Questions specifically about Rails (rather than the Ruby language it is
    written in) are best asked on a Rails mailing list, rather than a Ruby
    one.
    --
    Posted via http://www.ruby-forum.com/.
     
    Brian Candler, Jul 19, 2010
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    4
    Views:
    20,668
    Shishir19
    Mar 19, 2007
  2. Gary Herron
    Replies:
    2
    Views:
    670
    Bruno Desthuilliers
    Jul 4, 2006
  3. macracan
    Replies:
    3
    Views:
    609
    Jack Klein
    Feb 8, 2008
  4. sweety5236

    Java - missing return statement..

    sweety5236, Apr 9, 2008, in forum: Java
    Replies:
    0
    Views:
    736
    sweety5236
    Apr 9, 2008
  5. We Ech Dee Ell
    Replies:
    8
    Views:
    2,004
Loading...

Share This Page