Using rails 2.3.3

I've put greeting.rhtml in both

app\views\app

and

app\views\application

SAME result....Any other ideas ?

I've tried starting it in console mode but it just says Load Develope
Env >>

I'm trying to stay positive about Rails but am a little discouraged
that
I can get my first controller/view working  :<


On Aug 19, 12:44 pm, Frederick Cheung <[email protected]>
wrote:
> On Aug 19, 3:17 pm, mgpowers <[email protected]> wrote:
>
> > I did look at the log file and even posted the error message in the
> > very first post..
>
> > see...below...Any ideas ?
>
> Oops, didn't spot that. You may get a more verbose error if you try to
> run
>
> ruby script/console
>
> Fred
>
>
>
>
>
> > The error message is from development.log is...
> > # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\
> > Tue Aug 18 16:50:34 -0400 2009
> >   Status: 500 Internal Server Error
> >   unknown error
>
> >   Status: 500 Internal Server Error
> >   unknown error
>
> > PS . It does show the default web page ok athttp://localhost:3000
> > just not the app
>
> > Here is my controller in c:\ruby\hello\app\controllers
> > \app_controller.rb
> > .....
> > class AppController < ApplicationController
>
> >   def greeting
> >   end
>
> > end
>
> > Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml
>
> > <html>
> >     <head>
> >         Ruby on Rails
> >     </head>
> >     <body>
> >         Yes its working!
> >     </body>
> > </html>
>
> > Here is the URL that I'm trying to access it
>
> >http://localhost:3000/App/greeting
>
> > On Aug 19, 9:43 am, Frederick Cheung <[email protected]>
> > wrote:
>
> > > On Aug 19, 1:44 pm, mgpowers <[email protected]> wrote:
>
> > > > I followed step by step the instructions for the first application in
> > > > the Begining Ruby for Rails book
> > > > and checked the online documentation before even posting.
>
> > > > Do you have any suggestions as shown I have a controller and a view
> > > > and an application defined but
> > > > its not finding it or giving me the error message posted.....any
> > > > ideas ?
>
> > > Look at the log file in log/development.log It's probably something
> > > like a bad database setup or similar.
>
> > > fred
>
> > > > Thanks!
>
> > > > On Aug 19, 7:50 am, Rick <[email protected]> wrote:
>
> > > > > > PS . It does show the default web page ok athttp://localhost:3000
> > > > > > just not the app
>
> > > > > It doesn't show the app because you don't actually have one.
>
> > > > > You should read what you see athttp://localhost:3000.  Specifically,
> > > > > steps 1, 2, and 3 in the main panel give you some obvious tips on
> > > > > what's next.
>
> > > > > If these tips are too vague you can find more detailed information on
> > > > > the right panel.  Under "Browse the Documentation" follow "Rails
> > > > > Guides" to "Getting Started with Rails".
>
> > > > > You might also consider picking up a book and working through an
> > > > > example.  Pay careful attention here, however, to the versions of Ruby
> > > > > and Rails (and any gems and plugins) used in the book.
>
> > > > > Happy tRails- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to