I want to try writing a rails app, using edge rails, all models of which will extend ActiveResource. In other words, I don''t need a database. How do I configure my app so that rails doesn''t look for an RDBMS and database? This is a problem for example when I run rake tasts, as rake attempts to connect to the default DB. I tried commenting out everything in the database.yml file, but that didn''t work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Isopaleocopria > I want to try writing a rails app, using edge rails, all models of > which will extend ActiveResource. In other words, I don''t need a > database. Just use sqlite3, and you won''t have to think about the DB. Rails will create the file silently for you, and you shouldn''t be bothered by error messages of any kind (I guess). Alain -- Alain Ravet -------- http://blog.ravet.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I did try this in my environment.rb file:
<pre>
config.frameworks -= [:active_record]
</pre>
This did stop rails from trying to establish a connection to the
database, but it also leads to exceptions, since other gems, like
active support and railties, have dependencies on ActiveRecord.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Isopaleocopria
> I did try this in my environment.rb file:
> config.frameworks -= [:active_record]
> .. but it also leads to exceptions, since
Make your life simpler :
file: database.yml
------------------
development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 5000
production:
development
test:
adapter: sqlite3
database: db/test.sqlite3
timeout: 5000
--
Alain Ravet
--------
http://blog.ravet.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---