Prev: Ruby Shoes: Self-contained?
Next: Null checks in Ruby
From: Boris Vom grund on 18 Jul 2010 08:44 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/.
From: Michael Fellinger on 18 Jul 2010 11:19 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 <borijee(a)googlemail.com> 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
From: Brian Candler on 19 Jul 2010 09:08 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/.
|
Pages: 1 Prev: Ruby Shoes: Self-contained? Next: Null checks in Ruby |