School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,391 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,571 people online right now. Registration is fast and FREE... Join Now!




Ruby/Ruby On Rails basics not working

 

Ruby/Ruby On Rails basics not working, the tutorials I checked out and followed are not working out

JkinsonA

21 Jun, 2009 - 04:42 AM
Post #1

New D.I.C Head
*

Joined: 1 Apr, 2009
Posts: 19

Hey guys,

To give a brief explanation I am new to ruby and tried out some tutorials, anyways I managed to get the server running as localhost:3000 which displayed the usual and expected web page

then lets say I executed the command

"ruby script\generate controller hello"

and then under the views folder created hello.rhtml and inserted "Hello World" and when I go to localhost:3000/hello I get the following error

QUOTE
"We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly."


I believe the error code is 500

I really want to learn ruby and if I cant overcome this obstacle I cannot advance

Your help is very much appreciated smile.gif

Regards,
JkinsonA


User is offlineProfile CardPM
+Quote Post


MitkOK

RE: Ruby/Ruby On Rails Basics Not Working

21 Jun, 2009 - 04:54 AM
Post #2

D.I.C Regular
Group Icon

Joined: 9 Aug, 2007
Posts: 356



Thanked: 19 times
Dream Kudos: 250
My Contributions
1. Take a look at log/development.log file.

2. Get a good book, reading your post I can say that you have no idea what you're doing.

User is offlineProfile CardPM
+Quote Post

JkinsonA

RE: Ruby/Ruby On Rails Basics Not Working

21 Jun, 2009 - 05:07 AM
Post #3

New D.I.C Head
*

Joined: 1 Apr, 2009
Posts: 19

QUOTE(MitkOK @ 21 Jun, 2009 - 04:54 AM) *

1. Take a look at log/development.log file.

2. Get a good book, reading your post I can say that you have no idea what you're doing.


Hey, thanks alot for your reply, it actually helped alot

I noticed that the error was something to do with the permissions for the log file

Here is a screenshot which will tell you what is wrong

http://img221.imageshack.us/i/there.jpg/

I am not sure how to fix this problem and guidance would be very much appreciated

smile.gif

This post has been edited by JkinsonA: 21 Jun, 2009 - 05:12 AM
User is offlineProfile CardPM
+Quote Post

MitkOK

RE: Ruby/Ruby On Rails Basics Not Working

21 Jun, 2009 - 05:19 AM
Post #4

D.I.C Regular
Group Icon

Joined: 9 Aug, 2007
Posts: 356



Thanked: 19 times
Dream Kudos: 250
My Contributions
As you can see, the permission caused a warning, but the real problem is that you don't have SQLite Ruby library :

QUOTE
no such file to load -- sqlite3.


So, just install the gem

CODE
$ gem install sqlite3-ruby


The problem is that this will build native extensions and Windows really sucks as ruby/rails dev environment.

This post has been edited by MitkOK: 21 Jun, 2009 - 05:20 AM
User is offlineProfile CardPM
+Quote Post

JkinsonA

RE: Ruby/Ruby On Rails Basics Not Working

21 Jun, 2009 - 05:36 AM
Post #5

New D.I.C Head
*

Joined: 1 Apr, 2009
Posts: 19

QUOTE(MitkOK @ 21 Jun, 2009 - 05:19 AM) *

As you can see, the permission caused a warning, but the real problem is that you don't have SQLite Ruby library :

QUOTE
no such file to load -- sqlite3.


So, just install the gem

CODE
$ gem install sqlite3-ruby


The problem is that this will build native extensions and Windows really sucks as ruby/rails dev environment.


Heya, thanks alot for your input

though there is another problem, and I am hating vista even more than I kinda did, and unfortunately I dont have Ubuntu installed here so I cant work using Ubuntu instead

anyways here is the latest problem, it cant seem to install the library

http://img81.imageshack.us/i/thank.jpg/

Your help is very much appreciated smile.gif

REgards,
JkinsonA
User is offlineProfile CardPM
+Quote Post

MitkOK

RE: Ruby/Ruby On Rails Basics Not Working

21 Jun, 2009 - 11:29 AM
Post #6

D.I.C Regular
Group Icon

Joined: 9 Aug, 2007
Posts: 356



Thanked: 19 times
Dream Kudos: 250
My Contributions
Search for installing SQLite under Windows smile.gif
User is offlineProfile CardPM
+Quote Post

Kerplope

RE: Ruby/Ruby On Rails Basics Not Working

2 Jul, 2009 - 01:01 PM
Post #7

New D.I.C Head
Group Icon

Joined: 22 Sep, 2008
Posts: 8



Thanked: 1 times
Dream Kudos: 100
My Contributions
I had the sample problem installing sqLite 3 basically you want to grab the sqlitedll-3_6_16.zip from the Precompiled Binaries For Windows within http://www.sqlite.org/download.html and drop the extracted files into your ruby/bin directory. Also make sure you restart your server, you may also need to restart your computer.

Good Luck.

This post has been edited by Kerplope: 2 Jul, 2009 - 01:01 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:46PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month