or maybe you did not follow the plural/singular rule?. Example:
let''s say that you have a table that will contain movies. Then:
1) The table is called movies
2) to generate the scaffold, you should type ruby script/generate scaffold
movie
3) you will find the result at the adress localhost:3000/movies/list
On 8/22/05, Ronny Hanssen
<ronnyh-7tg5dEkr+6sdnm+yROfE0A@public.gmane.org> wrote:
>
> Is the actual name for the table in the database "table_name"? It
just
> sounded a bit strange to me. Maybe that''s were you''re
problem is?
>
> Maybe you just wanted to do:
> ruby script/generate scaffold Admin
> Which will create an admin controller to control the Admin table.
>
>
> Ronny
>
>
> Guy Doune wrote:
> > Hi,
> >
> > I got that message in the browser when I try to
> > connect on : http://localhos:3000/admin after generate
> > the scaffold with that script :
> >
> > ruby script/generate scaffold table_name Admin
> >
> > Error :
> >
> > FATAL C3D000 Mdatabase "biomasse" does not exist
> > Fpostinit.c L274 RInitPostgres
> >
> > The database is a PostgreSQL v 8.0.3 with a
> > relationnal database. The accessing driver looks
> > working fine and the database is install in local...
> >
> > Thanks
> >
> >
> >
> >
> >
> >
> >
> >
> > __________________________________________________________
> > Find your next car at http://autos.yahoo.ca
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
>
> --
> ------------------------------------------------------------------------
> /*Ronny Hanssen*/
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails