|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Server error in RoR
I recently installed Ruby and Rails on it, and tried to run the server using:
Code:
ruby script\server After doing so I tried to enter one of my existing controllers (which I made before and got Code:
MissingSourceFile in My testController#index
no such file to load -- sqlite3
RAILS_ROOT: C:/test
This error occurred while loading the following files:
sqlite3
Request
Parameters:
None
Show session dump
Response
Headers:
{"cookie"=>[],
"Cache-Control"=>"no-cache"}
What to do to solve this problem?? |
|
#2
|
|||
|
|||
|
Code:
irb(main):001:0> require 'sqlite3'
LoadError: no such file to load -- sqlite3
from (irb):1:in `require'
from (irb):1
You need to ensure that you have all sqlite3 requirements satisfied before you can include the files (notice the bolded section above) See here
__________________
-- I'll provide you with reference points; if they dont work, refer to something else. If you process text, this might make your life a little easier. |
|
#3
|
|||
|
|||
|
Two questions about it:
1. I have Windows XP Home Edition, and I know PHP doesn't support Home Edition - the SQLite does? 2. Isn't MySQL better than SQLite? |
|
#4
|
||||
|
||||
|
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Quote:
What's with the jump from Ruby on Rails to PHP? That was a total nonsequitur. Anyway, PHP will run on XP Home. Google up WAMP or XAMPP for implementations of the LAMP stack (Apache/MySQL/PHP) on Windows if you need a webserver, DB and PHP on Windows. There's nothing wrong with SQLite, but as L7 said, it all depends on your requirements.
__________________
This is a sig, and not a necessarily a comment on the OP: Please don't be a help vampire! |
|
#6
|
|||
|
|||
|
Another problem!
I am trying to follow this guide: Here (I did steps 1-5) And they ask that I will add a row into my MySQL table - I tried to use Code:
INSERT INTO people VALUES (1, 'bla', 'dsa', 'dsad', 'das', 'dsa', '564'); via the MySQL Administrator query browser but I get error #1054 ("Unknown column in 'field set'" or something). Any ideas? Edit: This problem was solved. Last edited by Rogare : May 13th, 2008 at 06:04 AM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Server error in RoR |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|