Forum: Ruby on Rails blank page output

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
322b38b83dd957ea13478623d22dbd9e?d=identicon&s=25 Roberto Mason (Guest)
on 2006-03-28 05:33
(Received via mailing list)
Hello, I'm new to Ruby and RubyOnRails. I'm running Fedora 4 which comes
with Ruby 1.84-1. I installed rubyonrails, and I'm doing the a sample
program found on
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rail...
I ran ruby script/generate controller MyTest. I edited the file
my_test_controller.rb. Here's the code I entered

class MyTestController < ApplicationController
	def index
		render_text "Hello World, my first line of Ruby"
	end
end

I save the file. I then ran the browser with the following url

http://127.0.0.1:3000/My_Test/

I get a blank page, no output.

if I do

http://127.0.0.1:3000/garbage/

I still get a blank page instead of a NOT FOUND message.

I know I'm doing something wrong, but I can't figure out what.

If anyone out there has an idea what, Thanks :)





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-03-28 05:55
(Received via mailing list)
On Mon, 2006-03-27 at 22:31 -0500, Roberto Mason wrote:
> 	end
> http://127.0.0.1:3000/garbage/
>
> I still get a blank page instead of a NOT FOUND message.
>
> I know I'm doing something wrong, but I can't figure out what.
>
> If anyone out there has an idea what, Thanks :)
----
try lower case...

http://127.0.0.1:3000/my_test
or (I find this easier)
http://localhost:3000/my_test
or (I find this even easier)
localhost/my_test

Windows seems to ignore case sensitivities...

Windows sees "My_Test" and "my_test" as the same name, UNIX/Linux does
not.

Craig
322b38b83dd957ea13478623d22dbd9e?d=identicon&s=25 Roberto Mason (Guest)
on 2006-03-28 05:59
(Received via mailing list)
I'm running this on my Fedora 4. I've tried lowercase, but same result


On Mon, 2006-03-27 at 20:55 -0700, Craig White wrote:
> > 		render_text "Hello World, my first line of Ruby"
> >
> http://127.0.0.1:3000/my_test
> Craig
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-03-28 06:03
(Received via mailing list)
what is output of...

cd cookbook # get into the right directory on the command line

cat app/models/my_test_controller.rb

tail log/development.log

Craig
78d45b303250a077fc65fd61e00277ed?d=identicon&s=25 Jon Lim (Guest)
on 2006-03-28 13:07
(Received via mailing list)
Try deleting your session variables.
/tmp/ruby_sess*

On 28/03/06, Roberto Mason <baubba@rmasonfamily.info> wrote:
>         end
> http://127.0.0.1:3000/garbage/
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
http://www.snowblink.co.uk/
322b38b83dd957ea13478623d22dbd9e?d=identicon&s=25 Roberto Mason (Guest)
on 2006-03-28 20:07
(Received via mailing list)
Figured it out. Fedora 4 installs only ruby by default. I searched
Google fedora 4 and ruby. I found out that you don't only need ruby, but
the following file

ruby-devel
ruby-libs
irb
rdoc

I installed them (and everything else related Ruby that I could find in
Fedora) and now it works.

Thanks for your patience people
Take Care


On Mon, 2006-03-27 at 21:03 -0700, Craig White wrote:
> On Mon, 2006-03-27 at 22:58 -0500, Roberto Mason wrote:
> > > > my_test_controller.rb. Here's the code I entered
> > > >
> > > > If anyone out there has an idea what, Thanks :)
> > >
> >
> >
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
This topic is locked and can not be replied to.