Re: Online diary/Journal program(OT)
- From: "Al Gordon" <runlevel7@xxxxxxxxx>
- Date: Wed, 31 May 2006 15:59:21 -0400
On 5/30/06, Wade Smart <wade@xxxxxxxxxxxxx> wrote:
05302006 1216 GMT-6
Look at Ruby On Rails
Good call. You can quickly and easily create something like this in
RoR. Here's an example that's ugly, but should work:
Create a database for the app to use:
mysqladmin -u root create diary_development
Create the rails app:
rails diary
Configure the app:
cd diary
./script/generate model diary_entry
nano db/migrate/001_create_diary_entries.rb
put the following 2 lines in the create_table section:
t.column :entry_date, :date
t.column :diary_entry, :text
Save and exit
Initialize the database schema:
rake migrate
Create a scaffold for your diary application:
./script/generate scaffold diary_entry
Start the Rails web/app server:
./script/server
point web browser at localhost:3000/diary_entries and start diary'ing!
This should work with the latest RoR. I'm not sure if it'll work with
what's currently packaged in Ubuntu, however. :P
--
-- AL --
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- Online diary/Journal program(OT)
- From: िऩऩाद
- Re: Online diary/Journal program(OT)
- From: Chris Neary
- Re: Online diary/Journal program(OT)
- From: Wade Smart
- Online diary/Journal program(OT)
- Prev by Date: Re: upgrading from 5.10 to 6.0.6
- Next by Date: Where is Dapper?
- Previous by thread: Re: Online diary/Journal program(OT)
- Next by thread: Bandwidth Calculator
- Index(es):
Relevant Pages
|