Hello all,
I''m hoping someone can help me with this problem. This is
definitely a newbie question as this is the case where the very first
program of mine in RoR is not working. I downloaded Ruby, Ruby Gems
and Rails from the rubyonrails.org site. I run Windows Vista. The
starter page of index.html did work but that''s it.
I have Ruby version 1.8.6, Gem version 0.9.4 and Rails version
1.2.3 I created an application called my_app by entering the console
command rails my_app and this was done from the folder www/webroot
(note, I use path representations of www/webroot or www>webroot to
mean the same thing). This is the Apache server root folder which I
use with PHP/MySQL, etc. I can use the server for Rails by typing :
ruby server and that starts WeBrick.
Then if I enter http://localhost:3000/ I get the index.htm page which
is in my_app/public/ I can also get that page to load using
http://localhost/my_app/public/
The problem with that file is that it has a link for My
application environment that looks for rails/info/properties and
cannot find it. There is no such folder of rails in the application
folder my_app that I just mentioned.
Then the tutorial goes on to create the first application in
RoR a Hello, World page. This is done by going to the Windows Console
and from the my_app/scripts/ folder entering ruby generate controller
say.
This creates two folders. 1) in the folder my_app>app>controllers
there is the file say_controller.rb
2) In the folder my_app>app>views> there is a folder say for the
template/view file and that file will become hello.rhtml
Now, on the instructors system and in his browser he enters
http://localhost:3000/say/hello/
And it comes up with a page that says in the body Hello, World.
With the WeBrick browser running on my system I enter the same webpage
and get a http 404 error page with the message "The Webpage cannot be
loaded"
Can someone help me with this, please? Any tips?
Thanks,
Bruce
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Just checking you should have: app/controllers/say_controller.rb app/views/say/hello.rhtml Is that correct? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Bruce I have found that the one-click installer for windows (rubt/rails/ apache/mysql) works pretty well. Check it out. On Sep 26, 1:33 pm, Bruce <brucewheal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > I''m hoping someone can help me with this problem. This is > definitely a newbie question as this is the case where the very first > program of mine in RoR is not working. I downloaded Ruby, Ruby Gems > and Rails from the rubyonrails.org site. I run Windows Vista. The > starter page of index.html did work but that''s it. > I have Ruby version 1.8.6, Gem version 0.9.4 and Rails version > 1.2.3 I created an application called my_app by entering the console > command rails my_app and this was done from the folder www/webroot > (note, I use path representations of www/webroot or www>webroot to > mean the same thing). This is the Apache server root folder which I > use with PHP/MySQL, etc. I can use the server for Rails by typing : > ruby server and that starts WeBrick. > Then if I enterhttp://localhost:3000/I get the index.htm page which > is in my_app/public/ I can also get that page to load usinghttp://localhost/my_app/public/ > The problem with that file is that it has a link for My > application environment that looks for rails/info/properties and > cannot find it. There is no such folder of rails in the application > folder my_app that I just mentioned. > Then the tutorial goes on to create the first application in > RoR a Hello, World page. This is done by going to the Windows Console > and from the my_app/scripts/ folder entering ruby generate controller > say. > This creates two folders. 1) in the folder my_app>app>controllers > there is the file say_controller.rb > 2) In the folder my_app>app>views> there is a folder say for the > template/view file and that file will become hello.rhtml > Now, on the instructors system and in his browser he entershttp://localhost:3000/say/hello/ > And it comes up with a page that says in the body Hello, World. > With the WeBrick browser running on my system I enter the same webpage > and get a http 404 error page with the message "The Webpage cannot be > loaded" > Can someone help me with this, please? Any tips? > Thanks, > Bruce--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---