![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
PS . It does show the default web page ok athttp://localhost:3000 just not the app |
#3
| |||
| |||
|
|
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 --~--~---------~--~----~------------~-------~--~----~ |
#4
| |||
| |||
|
|
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 ? |
|
Thanks! On Aug 19, 7:50*am, Rick <richard.t.ll... (AT) gmail (DOT) com> 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 --~--~---------~--~----~------------~-------~--~----~ |
#5
| |||
| |||
|
|
On Aug 19, 1:44*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> 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 <richard.t.ll... (AT) gmail (DOT) com> 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 - --~--~---------~--~----~------------~-------~--~----~ |
#6
| |||
| |||
|
|
I did look at the log file and even posted the error message in the very first post.. see...below...Any ideas ? 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 <frederick.che... (AT) gmail (DOT) com wrote: On Aug 19, 1:44*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> 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 <richard.t.ll... (AT) gmail (DOT) com> 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 - --~--~---------~--~----~------------~-------~--~----~ |
#7
| ||||
| ||||
|
|
Your problem is a missmatch between the controller name and the view directory name. If you're going to use application_controller.rb |
|
then c:\ruby\hello\app \views\app\greeting.rhtml should be c:\ruby\hello\app\views \application\greeting.rhtml. |
|
You can use scaffold to help get more familiar with what goes where. Try this: script/generate scaffold User name:string profile:text |
|
Rick |
#8
| |||
| |||
|
|
I did look at the log file and even posted the error message in the very first post.. see...below...Any ideas ? |
|
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 <frederick.che... (AT) gmail (DOT) com wrote: On Aug 19, 1:44*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> 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 <richard.t.ll... (AT) gmail (DOT) com> 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 - --~--~---------~--~----~------------~-------~--~----~ |
#9
| |||
| |||
|
|
On Aug 19, 3:17*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> 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 <frederick.che... (AT) gmail (DOT) com wrote: On Aug 19, 1:44*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> 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 <richard.t.ll... (AT) gmail (DOT) com> 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 - --~--~---------~--~----~------------~-------~--~----~ |
#10
| |||
| |||
|
|
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 *: |
![]() |
| Thread Tools | |
| Display Modes | |
| |