Displaying 20 results from an estimated 10000 matches similar to: "Re: Rails on Linux to mssql"
2013 Feb 14
4
Struggling with Jruby Rails + jdbc driver
hi all,
I am having a hard time trying to find out what''s wrong with my setup. It
used to work smoothly until I decided out of the blue to do a selfupdate
and upgrade outdated on MacPort, then things started going south very
quickily.
Since MacPort kinda broke, I pull it all out and re-install the ports I
have before, which went pretty smoothly. Then to my surprise any command I
2009 May 05
3
Oracle-JRuby error
I am trying to migrate from RoR/MYSql to JRoR/Oracle. I am using Active
Record JDBC to talk to the database. The Migration process to create and
populate the database tables has been painful. My latest issue is the
method new_date is undefined in the JDBC adapter. I have the following
gems installed:
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using
activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1.
ActiveRecord::JDBCError: Generated keys not requested. You need to
specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate()
or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0
This occurs not matter what application I run it in to e.g. rake,
rails
2011 May 07
4
Activerecord::JDBCError: Invalid column number
Hi,
I''m rather new to Ruby and RoR, so I do not really know whether this ist
the right forum to place my question.
For my first ''project'' I planned to create a simple online-viewer, which
grabs data from an existing database and make them visible in a
structured form via browsers. So I thought that could be the right
beginner-project, because I have only read datasets
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations
$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby -S rails -v
Rails 3.1.0.rc4
$ jruby -S rails new myapp -d jdbcpostgresql
[...]
$jruby -S rake db:create
[...]
$ jruby -S rails g model user name:string
invoke active_record
create
2010 Sep 27
0
problem with set_sequence_name please help
I''m building rails 3 with legacy oracle 10g db. which it''s sequence is
non rails convension.
I have try this.
class AdCourt < ActiveRecord::Base
set_sequence_name ''COURT_SEQ''
end
with rails console :
AdCourt.sequence_name I have got "COURT_SEQ" which look ok.
When
AdCourt.create!(:caption => ''AAAA'', :code =>
2007 Jun 08
1
JRuby and tests
Using JRuby / ActiveRecord-JDBC / PostgreSQL 8.1 I get
jruby --command rake test
(in /Users/stevel/Publisher)
rake aborted!
Task not supported by ''jdbc''
Is it really the case that testing is not yet supported by
ActiveRecord-JDBC or am I missing something obvious?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2012 Apr 13
0
console for JRuby/Sinatra with Tomcat ?
We are using Ruby Sinatra running on JRuby with tomcat as a server.
I saw where it was claimed you could get a console in Sinatra by doing
something like this:
irb -r my_sinatra_app.rb
for me that would be
jruby -S rb my_sinatra_app.rb
but I get this error when I do that as obviously tomcat must
initialize some things:
C:/Tomcat60/webapps/ROOT/WEB-INF/vendor/activerecord-jdbc-
2011 Mar 31
1
Question about setting database config without database.yml
A little background.
We are deploying a rails app on jboss by using warbler and the app is
using rails 3.0.3.
There are several parameters the customer may need to change. Some of
these parameters include database connection information, ie shema,
username, password, host, port, and database. We are connecting
through oracle thorugh the jdbc adapter.
My problem lies in the fact that I cannot
2013 Feb 01
0
rake db:migrate failing against oracle
Hello All --
I am using jruby 1.6.7.2 with rails 3.2.11 to create a brown bag for
several other developers. I cannot get the migration to work to save my
life...
In my database yaml file I have the following:
---
development:
adapter: jdbc
driver: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@localhost:1521:xe
username: brownbag
password: brownbag
pool: 500
---
When I run:
2006 Nov 04
0
ProbleM!!!!!!!!!!!!!!!!!!
Hi,
I trieed umpteen times to connect ruby on rails to MSSQL server using
the standard procedures and I always get the samw error. As I was
previously working with MYSQL I faced no problem .Now at a time critical
situation I need a solution for this...........
Open
OLE error code:800A0E7A in ADODB.Connection
Provider cannot be found. It may not be properly installed.
HRESULT error
2006 Aug 15
2
Working with user data
I am a Rails newbie and I am trying to build a test site in which users
will have their own sets of data.
I understand how to manipulate shared data very well. Most of the Rails
examples out there seem to deal with such shared data. I am struggling
with the "best practice" method for a user to work with their own data
however (and not be able to view/edit other users''
2007 Aug 02
0
How to: Rails with JRuby/Actice Record-JDBC and JDBC-ODBC
hi to all,
it is posible to use activerecord-jdbc with the jdbc-odbc bridge?
i have problems to use ajax_scaffold. i get an error message, that the
driver is unable to choose type for date from(list of datatypes)
my database.yml look like
development:
adapter: jdbc
driver: sun.jdbc.odbc.JdbcOdbcDriver
url: jdbc:odbc:ac43demo
username: ac_odbc
password: ac_odbc
i have modified the
2008 Nov 28
1
True ActiveRecord result set iteration
Hello,
For an internal project we were looking for a solution which extends
ActiveRecord by an iterator function. Using find(:all) is no fun if you
have to process some 10.000 records.
Until now there have been two ways of dealing with that scenario:
- write your logic a second times (e.g. use stored procedure)
- bet on AR plugins which work around that limitation by fetching IDs and
2010 Jun 29
0
singleton can't be dumped in rails session
Hi,
I am doing an integration with commission junction using SOAP to get the
result. It is working fine for me. My problem is I have to add the
pagination so I have used will_paginate for pagination. For each page I
am doing a call to commission junction and getting the result which make
a performance bottleneck for my application. To solve this I have
decided to store the response in session and
2006 Apr 10
1
ActionWebService PDF...
Hello all - I''ve been lurking around the forums for awhile now and just
wanted to say that everyone here does a great job of helping each other
out...I think it goes a long way in helping even more people adopt Ruby
(and Rails)
I just wanted to let everyone know that I''m working on an online booklet
(PDF only) for O''Reilly that covers "Web Services with Ruby on
2005 Apr 26
0
NoMethodError (undefined method `fetch_fields' for nil:NilClass)
Hi
I''m new to Rails (and Ruby) and I can''t get it to work properly.
Every time I want to do something with my database-connection (e.g.
use scaffold) I get this, or something similiar (from development.log):
>> Beneath this code there''s some more text <<
-------
Processing CategoryController#index (for 127.0.0.1 at Tue Apr 26
21:43:45 CEST 2005)
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to
test my site and it comes up with the the message on the site:
ActiveRecord::StatementInvalid in RecipeController#index
Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS
FROM recipes
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Sep 24
1
Utilize Java Libraries
Is it possible to utilize java libraries from a RoR application?
I saw some stuff about Web Services (i.e. SOAP), so obviously that is
one way.
I also was looking at the JRuby project...
I was just curious how serious the efforts are to integration java and
ruby and how that relates to the rails framework.
Thanks for your thoughts!
--~--~---------~--~----~------------~-------~--~----~
You
2009 Nov 03
2
will_paginate pagination problem
hi;
i use will_paginate the first page come true but all other page get the
same data of first page i checked in controller "page" parameter works
true but paginate get only first page''s data and shows these data in all
pages
forexample first page seen A,B second page also seen A,B but second page
must be C,D
my code is;
controller :
@list = Company::Env.paginate :page =>