My Rails 3.1 app doesn''t need to talk to any database. Nonetheless, Rails is attempting to connect to a database and failing. How do I prevent my app from connecting? Ralph Shnelvar -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Well you could just define a sqlite database in your database.yml file and then just ignore everything -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 22 December 2011 10:10, Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> My Rails 3.1 app doesn''t need to talk to any database. > > Nonetheless, Rails is attempting to connect to a database and failing. > How do I prevent my app from connecting?When you create a new app you can use the option --skip-active-record or -O (they are the same thing, rails -h will show the options). If you have already created the app then see http://stackoverflow.com/questions/2212709/remove-activerecord-in-rails-3-beta for how to remove activerecord, though I have not tried this myself. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
In config/application.rb comment require "active_record/railtie" line # Pick the frameworks you want: # require "active_record/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "sprockets/railtie" # require "rails/test_unit/railtie" Gautam Pai On Thu, Dec 22, 2011 at 4:07 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 22 December 2011 10:10, Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > My Rails 3.1 app doesn''t need to talk to any database. > > > > Nonetheless, Rails is attempting to connect to a database and failing. > > How do I prevent my app from connecting? > > When you create a new app you can use the option --skip-active-record > or -O (they are the same thing, rails -h will show the options). > > If you have already created the app then see > > http://stackoverflow.com/questions/2212709/remove-activerecord-in-rails-3-beta > for how to remove activerecord, though I have not tried this myself. > > Colin > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
when creating a new app just use -O or --skip-activerecord rails new myApp -O or rails new myApp --skip-activerecord Gautam Pai On Thu, Dec 22, 2011 at 11:03 PM, Gomzi Pai <gomzi.pai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > In config/application.rb comment require "active_record/railtie" line > > # Pick the frameworks you want: > # require "active_record/railtie" > require "action_controller/railtie" > require "action_mailer/railtie" > require "active_resource/railtie" > require "sprockets/railtie" > # require "rails/test_unit/railtie" > > Gautam Pai > > > On Thu, Dec 22, 2011 at 4:07 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> On 22 December 2011 10:10, Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> > My Rails 3.1 app doesn''t need to talk to any database. >> > >> > Nonetheless, Rails is attempting to connect to a database and failing. >> > How do I prevent my app from connecting? >> >> When you create a new app you can use the option --skip-active-record >> or -O (they are the same thing, rails -h will show the options). >> >> If you have already created the app then see >> >> http://stackoverflow.com/questions/2212709/remove-activerecord-in-rails-3-beta >> for how to remove activerecord, though I have not tried this myself. >> >> Colin >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.