Displaying 20 results from an estimated 1100 matches similar to: ""Sequence does not exist" for joined model"
2011 Mar 11
2
Problem with Redmine
I am having a problem getting Redmine to run with Oracle (11.2) backend.
I get this error (below) because Oracle table names are limited to 30
characters. Does anyone around here know of a fix or workaround? I''m
wondering if I can simple change the table name, or if that will break
the application.
When doing a db migrate to an Oracle db this creates the error below.
I''m so
2008 Oct 23
0
rails application working, rake tasks not
Hi,
I have some problems with rails and the oracle_enhanced adapter.
My rails application is working but not my rake task. It doesn''t find
the oracle_enhanced adapter.
Please install the oracle_enhanced adapter: `gem install
activerecord-oracle_enhanced-adapter` (no such file to load --
active_record/connection_adapters/oracle_enhanced_adapter)
But the gem is installed as the rails
2009 Sep 14
9
ActiveRecord::StatementInvalid (invalid date) with Oracle
Hello all. I am a novice Ruby on Rails programmer, starting my first
project using a legacy Oracle 10 database. Using ''reverse_scaffold'' I
have created the models/controllers/views for my existing Oracle
tables.
All seems to work well, using /model/index, /model/show for most of my
tables, *except* when one of the tables contains a Oracle ''date''
column, for
2010 Dec 15
3
ORA-12514: TNS:listener d oes not currently know of service requested in connect descriptor (OCIEr
Hi I am a new to ROR and learning this framework from various tutorials.
I have my new application and had the rails generate scaffold get going
but after this when I first ran the rake db:migrate I got this ERROR!
ORA-12514:
TNS:listener d
oes not currently know of service requested in connect descriptor
(OCIError)
I''m using database which is on a server and have used the tnsnames.ora
2010 Jan 08
1
problem using build with has_many :through relationship
Hello all,
I''m having problems creating a new record with has_many :through
My application is quite complicated so I''ll try to explain it as easy as
I can.
I have a many to many relationship with Projects, IRBs and Reviews.
Where reviews is the joined model.
In the new project view, I have a link (add IRB). This will add an a
list of IRBs to the new project form.
I have visited
2009 Dec 25
2
Understanding “create_association” and invalid objects
The documentation on the “create_association” method of the “belongs_to” association reads:
> create_association(attributes = {})
> Returns a new object of the associated type that has been instantiated with attributes, linked to this object through a foreign key, and that has already been saved (if it passed the validation).*
My expectation from this documentation is that calling
2011 Sep 02
3
problems with oracle xe server connection
i''m working on ubuntu 11.04; i need to create some rails application
with oracle database on local computer.
i installed: ruby 1.9.2, rails 3.1, oracle 10g XE, rubu-oci8 2.0.6,
gem ''activerecord-oracle_enhanced-adapter'', create database user named
''orak'' with password ''orakpass'' through 127.0.0.1:8080/apex, i maked
new application
2009 Sep 11
0
oracle_enhanced problem connection
Hello,
I have a problem connecting to the development Oracle database but not
to production, despite using the same credentials and connecting to the
same database.
The database is a legacy app that needs a new enhanced front end, so I''m
not designing a new database just interacting with the existing one.
Here is my database.yml:
development:
adapter: oracle_enhanced
user: user
2008 Oct 28
0
oracle_enhanced adapter 'uninitialized constant' error
Hi,
Can any one help me? I''m using Ubuntu and trying to connect to an oracle
database using oracle_enhanced adapter connection, but keeps getting
following error:
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.
rb:275:in `load_missing_constant'': uninitialized constant
ActiveRecord::Connecti
onAdapters::OracleEnhancedAdapter (NameError)
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 Dec 30
9
Oracle adapter problem? How to fix this?
Hi,
My setup is:
Ruby 1.8.6
Rails 2.3.5
activerecord-oracle-adapter (1.0.0.9250)
I upgraded Rails and the adapter recently and I just went through hell
trying to find a problem while inserting a record in a table.
Rails was giving me this error:
OCIError (ORA-02289: sequence does not exist):
stmt.c:539:in oci8lib.so
c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:753:in `exec''
2008 Jun 04
4
Where is the ActiveRecord Oracle Adapter with 2.1?
I tried this, which worked before:
sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
--no-ri --no-rdoc
But all I get is:
ERROR: could not find activerecord-oracle-adapter locally or in a
repository
Anyone else able to install the Oracle adapter?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2011 Nov 02
3
form_for text_field
I have a form
... html .....
<% form_for @person do |f| %>
... html .....
<%= f.text_field :last_name %>
... html .....
<% end %>
When last_name field of @person doesn''t contains french special symbols
like ''é'', all characters are displayed in the input control
(f.text_field :last_name ).
Else only symbols before french special symbol are
2009 Oct 20
1
OCIError (ORA-01017: invalid username/password; login denied
We''re trying to deploy our system on a separate server and have run into
nothing but trouble; specifically I get the error mentioned in the
subject. The username/password combo is correct (I verified it via
SQL+). Manually running script/server works fine in production or
development mode. Heck, running script/console also works fine. It''s
just that when it automatically
2010 Dec 08
0
rails 3 with oracle
Hi all can you please guide me on how to setup a new rails3
application with oracle as the database.
i have tried so many times and havin errors..
I used this command
rails new <app name> --database oracle
it does create the application fine but in the database.yml file i
have something like this
development:
adapter: oracle
database: databaseName
username: User
password: Secret
2012 Aug 07
0
spatial_adapter and ruby_ldap
Hi,
I''m running rails 3.0.9 with activerecord 3.0.9 and have three database
connections in my rails application - LDAP connection, Oracle and Postgres
with PostGIS. I have installed gems GeoRuby v 1.3.4, spatial_adapter v
1.3.1, activerecord-oracle_enhanced-adapter v 1.4.0, ruby-ldap v 0.9.12 ,
pg v 0.14.0.
With both gems the spatial_adapter seem to work well which also is the case
2009 Oct 08
2
Problem with oracle_enhanced adapter
Hi,
when I configure my app to use the oracle_enhanced adapter it throws the
following exception:
java.sql.SQLException: ORA-01882 : Timezone region not found
How can I solve this?
Thanks,
Rafael Roque
--
Posted via http://www.ruby-forum.com/.
2009 May 06
0
OCI Library Initialization Error
I am attempting to connect to ORACLE11g however i am getting the
following error:
"OCI Library Initialization Error"
IT always errors on OCIENV.init(). I cant see anything wrong on the ENV
configurations.
Has anyone had this problem, or any suggestions on where i should look
for anwers?
I am using the following gems:
ruby-oci8 (1.0.4)
activerecord-oracle-adapter (1.0.0.9250)
2009 Mar 22
3
undefined method 'define_a_column' for class 'OCI8::Cursor'
Hello. Tired of searching and finding nothing useful.
Moving application to laptop for trip.
Installed:
- Ruby (1.8.6, patchlevel 111)
- Rails (2.2.2)
- Oracle adapter (1.0.0.9250)
- ruby-oci8 (2.0.1)
- Oracle 10g Express Edition
database.yml:
development:
adapter: oracle
etc...
When I start Mongrel (ruby script/server) I get the error above. I''ve
looked everywhere I can think of.
2010 Aug 13
4
Rails and Oracle - can select date but cannot save
I''m seeing a behavior in Rails that I find very strange. Having worked
quite a bit with Oracle with other languages I would always dutifully do
ALTER SESSION SET NLS_DATE_FORMAT = <my_date_format> and ensure I use
that date format in my application.
With Rails I still have not figured out how to execute an ALTER SESSION
statement after connecting to the database (I''m using