similar to: what is Driver & what is Adapter ?

Displaying 20 results from an estimated 20000 matches similar to: "what is Driver & what is Adapter ?"

2008 Sep 26
3
rails -1.2.3 to 2.1.1 ? how ?
now i am working in a rails project version 1.2.3 but i like to work in rails 2.1.1 i thing by freexe the 1.2.3 gemm into vendor will solve the problem but i have 35 plugin in my project(which is version 1.2.3) so i worried about freezeing old gem into vendeor any help appreciated? thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2008 Jun 11
6
how to create new database to oracle ?
i have rails-2.1.0 my database.yml development: adapter: oracle database: pe username: or password: or >rake db:create >rake db:version --->Current version: 0 >rake db:migrate rake aborted! ORA-12154: TNS:could not resolve the connect identifier specified (See full trace by running task with --trace) is above idea is possible, then how ? and i thing i should give service
2007 Dec 14
17
Rails 2.0.1 RC2 - activerecord-oracle-adapter not found
Hi, Does anyone know why gem can''t find activerecord-oracle-adapter? C:\>rails --version Rails 2.0.1 C:\>gem install activerecord-oracle-adapter ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find activerecord-oracle-adapter (> 0) in any repository It all started when I tried to run Mongrel on a Win32 box: C:\web\FDS_Server>mongrel_rails start
2009 Apr 02
3
ID of adapter in migrations
Rails 2.3 How does one identify the adapter that a migration is using? I have some SQL code that only applies if the postgresql adapter is involved and I wish to put my execute method inside a suitable conditional. However, I cannot see a way to get this information from an instance of ActiveRecord::Migration. Nonetheless, some means must exist for migrations to work. How do I ID the DBMS
2008 Mar 28
6
Eager Loading + Confusion
So I''m trying to do a find with an order by specific column values thing, but some of the columns are attributes through associations. So I did some eager loading with the :include option to try and access the attributes of the object I''m doing the find on. Stuff has been blowing up on me so far. Here''s the code in the controller right now: sort_by = params[:sort_by]
2008 Oct 14
4
replace_html not working
hallo, everyone can anybody help me? i did add my code under ENGINES as a module in a project. before the change , all worked . and the differenz between both is only about application''s environment, before is Ruby version 1.8.6 (i486-linux) RubyGems version 1.1.1 Rails version 2.0.2 Active Record version 2.0.2 Action Pack version 2.0.2
2008 Jun 11
2
starting record id is 10000 in oracle 10g ,why ?
i create a new model(User) and create a new record (User.create(attributes)) in oracle when i check User.find 1 in console it gives record not found error when i try User.find(:first).id --> 10000 how to change this starting id into 1 .... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2008 Sep 03
5
Eager load associations in Oracle problem with more than 1000 records
I think Rails 2.1 introduced a bug when eager loading of associations with Oracle. In 2.1 ActiveRecord loads the included table with a big ''IN'' query: ''where association.id in (1, 2, 3, 4...)''. The problem is that Oracle has a hard limit of 1000 values in an IN clause. I get this error: ''OCIError: ORA-01795: maximum number of expressions in a list
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
I am having this crazy problem where it ONLY shows up in testing. This is my test code <code> def test_should_destroy task1 = Task.new(:description => "tmp", :done => false, :user => User.find_by_login(''admin'')) assert task1.save assert task1.destroy end </code> This is my task model
2007 Dec 26
3
ruby 1.9 / rails 2.0.2 problem...
just now i installed ruby 1.9 and rails 2.0.2 on it when i create new rails application username-hO7X3CQjxafZmfiEtUfXeA@public.gmane.org:~/project$ rails app can''t convert Enumerable::Enumerator into Array username-hO7X3CQjxafZmfiEtUfXeA@public.gmane.org:~/project$ how to solve it ? or did i make any mistake in installation process? -- Posted via http://www.ruby-forum.com/.
2009 Mar 25
11
ActiveRecord: Nested :include erroneous behavior
Hi, Found a simple example breaking on moving to 2.2 from 2.0. This example illustrates the usage of nested :include finder options. class Book < ActiveRecord::Base has_many :distributors end class Distributor < ActiveRecord::Base belongs_to :book has_many :agents end class Agent < ActiveRecord::Base belongs_to :distributor has_many :shops end class Shop <
2008 Oct 08
11
Using image_tag and send_data
I am using image_tag to load an image that I''ve saved to the database (using attachment_fu if you''re curious but that''s probably not relevant here): VIEW <%= image_tag ''/photo/get_image/5'' %> CONTROLLER def get_image @photo=Photo.find(params[:id]) send_data(DbFile.find(@photo.db_file_id).data, :type =>
2007 Dec 23
7
Help with error "undefined method `downcase' for nil:NilClass" after migration
Hi all, I have a rails 1.5.2 application. I''ve frozen the application via the "rake rails:freeze:gems" command. This application worked well on a server I previously had it installed on. My server was getting really slow, and I requested that I be moved to a new server. When I perform a "gem list rails" command on my new host, I receive only version 1.2.6. Since
2008 Aug 24
11
link_to_function check javascript attribute
How could I check the value of an javascript object''s attribute? <div id="new_item_details" style="display:none"></div> <%= link_to_function("Show details...", nil, :id => "show_details") do |page| page.visual_effect(:toggle_blind, :new_item_details) if (page[:new_item_details].style.visibility ==
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all, I am in the process of adding Migration support to the Ingres ActiveRecord adapter and have run in to a problem. During the call to create_table the Ingres adapter some how causes ruby to blow the stack and coredump/segv. I have tracked down the problem down to "add_column_options!" in "lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all, I am in the process of adding Migration support to the Ingres ActiveRecord adapter and have run in to a problem. During the call to create_table the Ingres adapter some how causes ruby to blow the stack and coredump/segv. I have tracked down the problem down to "add_column_options!" in "lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Oct 08
9
Plugins and the test environment
Hi guys. I''m writing a plugin for use in the test environment. However, when I run ``rake test'''' or ``rake spec'''', RAILS_ENV is set to "development" when my plugin''s init.rb is run. How do you configure a plugin to load require a file in the test environment? Thanks, Nick --~--~---------~--~----~------------~-------~--~----~ You
2006 Jul 03
13
Eager loading ActiveRecord objects
I have a complex graph of ActiveRecord entities that I want to load with one big honkin'' join query to avoid ripple loading. It''s for a report. However :include doesn''t get me all the way there because I want to load parents of parents (or children of children). I don''t mind doing the SQL by hand but I''m not quite sure what to do to get the result
2009 Apr 07
12
Problem with MYSQL after re-installing rails
Hey all- Re-installed OSX yesterday and with it, Ruby and Rails Now when I try to run db:migrate I get the error message: "!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. Rake aborted! no such file to load -- mysql" So, I try sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql And get:
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the select_tag difference between this: <% = select_tag (bags [], "options_for_select (bags.collect @ {| bb | [bb.bag_type, bb.id]}, ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id => "bags"})%> and this: <% = select_tag "bags [], " options_for_select (bags.collect @ {| bb