Displaying 20 results from an estimated 200 matches similar to: "ActiveRecord Oracle and nvarchar2 or nclob datatype"
2006 Apr 26
4
Re: Rails AR/Oracle Unit Test: [4280] failed
The revised patch submitted on #4748 broke the build, I''m looking to
sort out why.
Also note that this auto-test email didn''t make it to rails-core because
it was too big (every test failed, so the resulting email was huge).
I''ll patch my auto-testing script to truncate the email to no larger
than a few kb.
Michael Schoen wrote:
> "marcel" made
2006 Jul 07
5
link_to: link is missing id
I''m using a legacy table, where the unique id is not ''id''
I have a Model class like the following:
class Article < ActiveRecord::Base
set_primary_key "ARTICLE_ID"
end
however, using a link_to like the following (modified scaffolding),
the link has no id value:
<% for article in @articles %>
<tr>
<% for column in
2010 Aug 16
2
Form validation and processing w/o model (no Db/ActiveRecord)
All -
Trying not to fight rails on this, basically have a form and all the same as
would be with an ActiveRecord model except that there is no table. I started
out using this article:
http://stackoverflow.com/questions/315850/rails-model-without-database
...which is kind of a hack by inheriting ActiveRecord in to non-AR model but
am running into some problems and just have the feeling that I am
2006 Aug 02
3
Active Record
I want to build a one page finance calculator in Rails.
The form has several fields on it. When I press the calculate button
it will return to the same page with the answer. If there is an error
it will also return to the same page with the appropriate error
messages.
I want it to be able to
1. Carry over all the values on the form fields
2. Use the rails validation methods
How can I acheive
2006 Jul 21
2
Tableless ActiveRecord attribute and my aching head
I beat my head against a wall for almost 2 hours with this issue.
My first problem was easily solved. I wanted a class that could use
ActiveRecord''s validation capabilities but without using a table behind
it (I would be persisting setup information in the session, but the
initial setup parameters come from a user input form)
No problem...found this link which got me up and running
2006 Aug 16
3
Validate your forms with a table-less model
Ive followed this example of how to validate a form with a tableless
model:
http://rails.techno-weenie.net/tip/2005/11/19/validate_your_forms_with_a_table_less_model
Ive got this example working but when validation fails the failed boxes
are not highlighted in red. At the moment i have a contact details form
and want to validate the information entered by the user but this will
just result
2009 Jan 09
2
Confused about to_xml() in ActiveRecord::Base subclass
Since all my efforts to control how to_xml() is formatting dates has
failed, I''m now considering writing my own to_xml(). However, from
the limited examples I''ve found, I just don''t understand how to
actually reference the columns for the records in my record set.
Here''s a simplified view of my ActiveRecord object:
class Errors < ActiveRecord::Base
2006 Jun 27
4
Not Active Record Model Validation
I have a problem with ruby on rails validation
total_book_toy.rhtml
================
<%= text_field ''book1'', ''title1'' %>
<%= text_field ''book2'', ''title2'' %>
I want to validate these text_field so user can''t insert same title.
However, I was stuck how to do it.
Or maybe you have another way how to do it.
2007 Sep 03
0
Change the datatype of an attribute?
Hey everyone
I''m building an application that is using a mySQL SET datatype sad
The problem is that ActiveRecord thinks this is a date! Here''s the
relevant output from Model.columns:
#<ActiveRecord::ConnectionAdapters::MysqlColumn:0x351b488
@primary=false, @scale=nil, @sql_type="set(''Any'',''Grade School'',''High
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi,
in the past few months someone posted an entry on their blog about
how to do validations in non-AR classes and I cant find it any more.
Anyone have a link?
Thanks,
Trevor
--
Trevor Squires
http://somethinglearned.com
2006 Feb 05
0
Enum patch for Rails
Hello!
I''ve modified ActiveRecord a bit to support enum columns. This is tested
only with MySQL, and maybe needs some changes for other adapters (if
they use another syntax or quoting style).
I believe this patch should be tested well, so I haven''t (yet) tried to
post it to the official Trac. It is also not solid-as-a-rock when it
comes to quoting ENUM values.
After
2007 Aug 24
0
ArgumentError: interning empty string and enum-column plugin
Hello,
I am a developer who has just started working on a large scale
website in a team of 5 other developers. One of the developers has
introduced some enum columns into the the database. Now, by default,
active record doesn''t support enum column types but I have added the
enum-column plugin into our project. This has worked very well except
for a few instances where he
2006 Apr 12
0
Re: Re: Oracle unit test problem in Rails 1.1.2/Ruby-OCI 0.1
> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Lori Olson
> Sent: Tuesday, April 11, 2006 8:04 PM
> To: rails@lists.rubyonrails.org
> Subject: [Rails] Re: Re: Oracle unit test problem in Rails
> 1.1.2/Ruby-OCI 0.1
>
>
> Wilson Bilkovich wrote:
> > On 4/11/06, Lori Olson
2006 Aug 15
1
Interval datatype in migrations
How can I use an interval datatype inside migrations ? execute ?
TIA,
ngw
--
Nicholas Wieland
nicholas_wieland@yahoo.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/1c262694/attachment.html
2006 May 22
3
Using the MySQL SET datatype
Does anyone have any links to example code showing how to use the MySQL
SET datatype in my ActiveRecord objects.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
0
INTERVAL datatype
Really simple question: how do I use an INTERVAL datatype with
migrations ? I need it to represent a song duration.
TIA,
--
Nicholas Wieland
nicholas_wieland@yahoo.it
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
2012 Dec 12
2
[LLVMdev] donot support uint datatype?
hi guys,
i use clang to compile a program with datatype uint, but i get errors saying
" use of undeclared identifier 'uint'; did you mean 'int'? ".
it really doesn't support it? if true, how can i add a datatype?
--
View this message in context: http://llvm.1065342.n5.nabble.com/donot-support-uint-datatype-tp52523.html
Sent from the LLVM - Dev mailing list archive
2012 Dec 12
0
[LLVMdev] donot support uint datatype?
Hi Chen,
On Tue, Dec 11, 2012 at 04:37:20PM -0800, Dong Chen wrote:
> hi guys,
> i use clang to compile a program with datatype uint, but i get errors saying
> " use of undeclared identifier 'uint'; did you mean 'int'? ".
>
> it really doesn't support it? if true, how can i add a datatype?
clang related question should go to cfe-dev at cs.uiuc.edu
2012 Dec 12
2
[LLVMdev] donot support uint datatype?
hi Wei-Ren,
i got it, i have to add a "typedef int uint;"
that's not a big problem
thank you
--
View this message in context: http://llvm.1065342.n5.nabble.com/donot-support-uint-datatype-tp52523p52528.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Dec 12
0
[LLVMdev] donot support uint datatype?
On Tue, Dec 11, 2012 at 05:30:46PM -0800, Dong Chen wrote:
> hi Wei-Ren,
> i got it, i have to add a "typedef int uint;"
> that's not a big problem
Souldn't you use "typedef unsigned uint"?
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: