Disable database support ?

  • Thread starter Cristian Gradisteanu
  • Start date
C

Cristian Gradisteanu

Hello,
By default a new rails project comes with database enabled (by adding -d
option to your rails command when creating a new project you can change
the DBMS, by defaulds it says it's mysql but in rails 2.0.2 is
sqlite??).
Is there a way to avoid working with a database ? Commenting the
development lines in 'database.yml' does not seem to work! Is there
another way to do it?
I am new to this and wanted to play a bit with ruby without interacting
with a database yet, but I keep getting errors from configuration files
unless I create that database (in mysql, my case).
Thanks
 
A

Austin Ziegler

By default a new rails project comes with database enabled (by adding -d
option to your rails command when creating a new project you can change
the DBMS, by defaulds it says it's mysql but in rails 2.0.2 is
sqlite??).
Is there a way to avoid working with a database ? Commenting the
development lines in 'database.yml' does not seem to work! Is there
another way to do it?
I am new to this and wanted to play a bit with ruby without interacting
with a database yet, but I keep getting errors from configuration files
unless I create that database (in mysql, my case).

Ruby != Rails.

You don't need Rails to play with Ruby. If you want to play with Rails
without a database (for which there isn't much point), you should ask
on the Rails mailing list, not the Ruby mailing list.

-austin
 
T

Thomas Wieczorek

By default a new rails project comes with database enabled (by adding -d
option to your rails command when creating a new project you can change
the DBMS, by defaulds it says it's mysql but in rails 2.0.2 is
sqlite??).
Is there a way to avoid working with a database ? Commenting the
development lines in 'database.yml' does not seem to work! Is there
another way to do it?
I am new to this and wanted to play a bit with ruby without interacting
with a database yet, but I keep getting errors from configuration files
unless I create that database (in mysql, my case).

You might try ActiveRecord in a console application first. There are
some topics about "Railless ActiveRecord" or "ActiveRecord without
Rails" in the mailing list.
http://www.oreillynet.com/pub/a/rub...e-apps-with-ruby-and-activerecord.html?page=2
explains AR in a console app.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top