similar to: Rails 3.1 and SQLite3

Displaying 20 results from an estimated 10000 matches similar to: "Rails 3.1 and SQLite3"

2011 Sep 25
2
Noob Rails patcher - problems running the sqlite3 tests...
Hi, I am following the guide here: http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html I have an ubuntu 11.04 VM setup, installed rvm, and ruby (ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]). Pulled down the rails from github and created a 3.0 branch: $ git branch --track 3-0-stable origin/3-0-stable $ git checkout 3-0-stable I can run the non-db tests ok, all pass
2012 Mar 02
0
ConnectionNotEstablished when using connection on AR::Base abstract subclass
I''m using AR outside of Rails and calling establish_connection on an ActiveRecord::Base abstract_class subclass (to protect my connection in case anyone else is using AR). It was working just fine with AR 3.0.9, but I recently attempted to upgrade to AR 3.2.2. Now, when I hit a "nested" query from a has_many, I get a ActiveRecord::ConnectionNotEstablished. If I call
2005 Dec 22
0
Getting AdapterNotSpecified on simple script/generate
So even after installing the sqlite3-ruby gem without issues, I still get this error when I try to generate a model... Attempting local installation of ''sqlite3-ruby'' Local gem file not found: sqlite3-ruby*.gem Attempting remote installation of ''sqlite3-ruby'' Select which gem to install for your platform (powerpc-darwin8.3.0) 1. sqlite3-ruby 1.1.0 (mswin32)
2006 Feb 24
1
sqlite3 error: uninitialized constant API
I''m just starting my first rails app and I can''t figure out this error. It''s got something to do with connecting to sqlite3...Here''s the application trace: <code> /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing''
2007 Jan 10
0
SQLite3::CantOpenException
Hi, When I try to run a controller that connects to my project''s sqlite database, I get the following exception: SQLite3::CantOpenException in PostController#index could not open database config/database.yml correctly points to my database, like so: development: adapter: sqlite3 database: db/dev.db I''ve had Rails projects working with sqlite3 before (recently), but
2012 Feb 06
0
Error ActiveRecord::ConnectionNotEstablished
Hello, this morning I was trying to access my app on my computer, but, when I initialize the server and access localhost:3000, this message shows up: ActiveRecord::ConnectionNotEstablished So, I try to access via rails console, but again, another error: felipe@Felipe:~/rails_projects/simple_cms$ rails console
2013 Apr 09
2
Getting Started
So far I''m disappointed with what I see as red flags. I follow along what seems like foolproof instructions. I install everything, rails new /some/new/app cd to the directory and rails server and my worst fears cryptic useless stack trace...so I copy the top line, search for stuff on this sqllite3 adaptor to fix it, I type the gem install command it mentions (gem install
2012 Feb 20
0
Cannot start rails server: Please install the adapter: `gem install activerecord--adapter`
My app was working sublime ''till this morning when I noticed this strange error when running rails server: $ rails s => Booting WEBrick => Rails 3.2.1 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all, I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record, In my unciron.rb file I''m using preload_app true after_fork do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified
2011 Jul 14
0
ruby-1.8.7 + mysql-5.1.58 = Mysql::Error: #08S01Bad handshake
The issue: ruby-1.8.7 (compiled from src, not rpm) can''t connect to mysql-5.1.58: "Mysql::Error: #08S01Bad handshake" Environment: Linux Fedora Core 12 (or 14, does not matter) remote database server (different host) mysql-5.1.58 Ruby 1.8.7: wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz tar -xzvf ruby-1.8.7-p352.tar.gz cd ruby-1.8.7-p352 ./configure
2008 Jun 30
3
script/console sqlite3
I hope this is in the right place, if not just point me to the right place, please. I''m running through this tutorial: http://developer.apple.com/tools/developonrailsleopard.html and everything went swimmingly until I got to the point where I had to do some db stuff in script/console. I enter what the tutorial tells me to vendor1 = Vendor.create(:name => ''Parties R
2011 Nov 07
2
Problem with Rails3.1.1 in mass_assignment_authorizer
By accident I had Rails-3.1.1 installed by bundler. However, when I discovered this mishap during my feature run I encountered this error in many places: wrong number of arguments (1 for 0) (ArgumentError) /home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activemodel-3.1.1/ lib/active_model/mass_assignment_security.rb:209:in `mass_assignment_authorizer''
2006 Aug 07
0
deployment failures with sqlite3
Hello list, I''m attempting to deploy my first rails app on textdrive and have run into a problem. I currently have lighttpd running and I am able to start my rails app. When I attempt to visit my site I get an: Application Error (Rails) Investigating my production.log it looks like the app isn''t finding sqlite3, right? Do I need to pack that with the app? What about non
2010 Nov 30
0
simple SQLITE3 error!!??library routine called out of sequence
Hi, dear guys! I have following super simple program dbh=DBI.connect("DBI:SQLite3:barron.db") sth=dbh.prepare("INSERT INTO WORDS VALUES(?,?,?)") 3.times{ sth.execute("1","2","3") } and it gives me error : /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_param'': library routine called
2008 Nov 07
0
SQLITE3 error
I keep getting the following error when trying to use sqlite3 with Ruby. "./sqlite3.dll: 127: The specified procedure could not be found. - Init_sqlite3 (LoadError) ./sqlite3.dll from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' ..." I''m using Windows XP. I tried reinstalling: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
2013 Apr 13
3
Cannot reach http://localhost:3000 after starting Ruby on Rails server
I cannot reach http://localhost:3000 after starting Ruby on Rails server when running Windows 8. After running rails server in the directory that I want the server to start, the following prompt shows up: C:\Users\Brian\railsapp>rails server => Booting WEBrick => Rails 3.2.13 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown
2008 Nov 12
1
gem ruby-sqlite3 install error
i am tryin' to install ruby-sqlite3 via gem, but it keeps givin' me this output: mathilda ~ # gem install sqlite3-ruby Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install sqlite3-ruby checking for fdatasync() in -lrt... no checking for sqlite3.h... no make make: *** No
2010 Dec 15
2
Error reverse engineering MySQL with RMRE
Hi I am been trying in vain to auto-gen models by reverse-engineering mysql using RMRE. It complains mysql2 gem missing but as seen in my Rails environment below, it is there. Here''s my Rails environment and RMRE error. Experts... please help! Thanks a ton in advance!! === Ruby version 1.9.2 (x86_64-linux) RubyGems version 1.3.7 Rack version 1.2 Rails version 3.0.3 Active Record
2006 Mar 23
4
Postgresql connection problems
Forgive me for asking a trivial question on this list, but being new to Ruby/Ruby on Rails, I''m not sure where to start.... I''m trying to connect to a postgresql server: My database.yml contains: test_test: adapter: postgresql database: test_test username: testuser password: resutest host: testpgserver port: 5432 encoding: UTF8 min_messages: warning The
2011 Mar 18
6
Could not find sqlite3
I am trying to get Ruby/Rails running on my mac but having some issues. I created a new rails project "blog_test" trying to get something working. When I follow this guide http://guides.rubyonrails.org/getting_started.html it says to do a "db:create". This is where I get this error... Could not find gem ''sqlite3 (>= 0)'' in any of the gem sources listed