Sunday, November 20, 2005

ok Ruby on Rails does work

if you're using postgres you'll probably wanna use an id generator... hum, theres not
so we'll better use a sequence =)
ruby wont find it automatically, so you'll better just do this


create sequence t1_id_seq start 1;
alter table t1 alter column id set default nextval('public.t1_id_seq');

elegant... nope, but its the SIMPLIEST THING THAT COULD POSIBLY WORK =P


another thing, if they tell you that

created_on and updated_on will be automatically handled by RoR .... well i wont believe them, not for a date , not for a timestamp in PG, it allways show both fields in the object form ... @_@, haven't try it in mysql, for i don't like it, but would
think it work well with it

and finally , DOWNLOAD RADRails, its an SWT IDE specially for rails, if you think it's already fast, you wont believe how productive can you be with RAD.

just google it !

No comments: