View Single Post
  #1 (permalink)  
Old 29-09-2009, 09:53 AM
dqtrinh dqtrinh is offline
Junior Member
 
Join Date: Sep 2009
Posts: 2
Default ruby on rails web app setup issue

1. Am having a issue setting up a simple ruby webapp, tried following & get an abort error on "rake" cmd:
a. goto \public_html dir
b. type "rails test", which creates a default rail project
c. type "cd test" to go into new project dir
d. type "script/generate model person" to generate new object
e. changed contents of "test/db/migrate/create_people.rb", see below
f. type "rake db:migrate" to migrate new db changes to sqlite3 backend but get an "rake aborted! no such file to load -- sqlite3" error message at this stage...if I do "gem list sqlite3-ruby"...it lists current version is "sqlite3-ruby (1.2.5)...

2. Is it possible to change the public access webroot dir from "~/public_html" to "~/current/public" ?

--------------------------------------------------------------------------------
test/db/migrate/create_people.rb file contents
--------------------------------------------------------------------------------
#sorry don't know how to turn smiling face off, should be ":P" instead of smily face below...
class CreatePeople < ActiveRecord::Migration
def self.up
create_table eople do |t|
t.string "name"
end
end

def self.down
drop_table eople
end
end

Last edited by dqtrinh; 29-09-2009 at 10:25 AM.
Reply With Quote