similar to: Active Record and Postgres table inheritance?

Displaying 20 results from an estimated 1000 matches similar to: "Active Record and Postgres table inheritance?"

2005 Aug 21
8
validates_numericality_of
As far as I can tell "numericality" is not a word. Maybe this method should be renamed. -- R. Mark Volkmann Partner, Object Computing, Inc.
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
Hello, I am building an Rails applications that has to integrate an legacy system (lxoffice) (schema at: http://www.lx-office.org/uploads/media/DB_Schema_2.1.1_R_393_17_03_2005_.pdf). They somehow use global ids (global for some tables). I can not change the schema and still I want to use Rails to access it and not pure SQL. When I try to insert a record I get the following message:
2005 Oct 21
3
Need feedback on Instiki-AR beta
Hi all, Following the recent release of Instiki-AR beta, I haven''t had a lot of bug reports or other feedback. This could mean one of the two things. Either nobody is using it, or some people are, and have no problems at all. One thing for sure is that it''s certainly getting downloaded (20 times a day, as it were)! I''d like to know which way is it. So, if you are
2005 Dec 17
2
Testing RoR
I jumped into RoR @ about 3 AM. I think I''ve got it running, but need a simple sanity check. I''ve been through as many references as possible, but thought that I''d ask the list here for references. This list sort of almost being "live". _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Aug 19
13
Enumerations (again): Comments please
Some of my earlier questions may have hinted ever so slightly in the direction that I''m trying to implement "enumerations". By an enumeration here I mean a class that has a fixed number of immutable instances, which in turn have essentially only a name and a position. Requirements I''ve tried to meet are - Enumeration instances should only be loaded once from the
2005 Dec 31
1
Error when Testing AWS API (ArgumentError: illegal refid http://test.host/login)
OK, I''m finally starting to play around with the AWS part of Rails, and I''m running into problems with the functional tests. If I use the generator to create the web service as ./script/generate web_sevice MyTest do_it and then run the unit tests without further editing the code, I get the following error: test_do_it(MyTestControllerApiTest): ArgumentError: illegal
2009 Nov 11
4
Sessions
I''m an experienced programmer, but new to Rails. I would like to echo an unanswered question I''ve recently read elsewhere. Can any recommend an overview of get/post, cookies, sessions, etc., and how Ruby on Rails interacts with all of this? I''m interested in understanding how to harden a Rails application Regards -- Dave
2005 Dec 16
3
Productize on 1.0
Hi, Has anybody tried using the Productize plugin on a recent Rails install? The pages on RubyForge http://rubyforge.org/projects/productize/ seem to indicate the development has sort of stalled, or perhaps it''s stable as can be. Just thought I''d ask for before I give it a go.. Cheers, Jeroen
2005 Nov 07
0
pk_and_sequence_for(table) bug?
Hi, Doing connection.pk_and_sequence_for doesn''t return anything when I''m positive I''ve got a PK and sequence on my table on column "id", see DDL below. Is this a bug? ?> Player.primary_key => "id" >> Player.connection.default_sequence_name "players" => "players_id_seq" >>
2006 Jul 10
11
prototype hash method
var v1 = { a: ''value for a'', b:''value for b'' } var v2 = { c: ''value for c'', d: function(){some code...} }; var v3 = v2.merge(v1); I''m getting an error doing this... what is wrong?
2006 Mar 16
3
inserted_at seems buggy in production mode?
Hi, I''ve got a table with an inserted_at column. When I insert a record it automatically injects the current date/time, all is well. Then when I insert a second record, it uses the exact same timestamp that is used in the first record. This behavior only seems to occur in production mode. When I restart the server, the problem goes away but then immidetatly occurs again on the
2006 Aug 17
1
expectations on stubs (stubba) or mock methods on existing classes?
Hello, First, thanks for releasing Mocha. As someone who''s been practicing TDD much longer than I''ve been using Rails, one of my biggest complaints has always been the fact that the "Unit" tests are more like intefration tests because of how tightly coupled the domain model is when using ActiveRecord. Stubba looks like it could really help aleviate this problem. The
2006 May 24
2
autocompleter competing with saved form data in firefox
Hi all, I have used the sciptaculous Ajax autocompleter a few times now. A major problem I have at the moment is with a text field that has focus when a page loads. The text field has an autocompleter associated with it, but when the user starts typing, the firefox saved form data autocompleter appears first, and the scriptaculous one is partially hidden behind it. Has anyone else encountered
2006 Jan 05
2
model with type attribute
Dear all, I have a table with a column named "type" and I ''d like to access the type field of the correspondant model object but I get a deprecation warning when I use the following code : modelObject.type "type deprecated use class instead" How can I access such a named field in rails ? Johan Johan Duflost Analyst Programmer Belgian Biodiversity Platform (
2005 Dec 22
1
Ask Slashdot: Is Ruby on Rails Maintainable?
Ask Slashdot: Is Ruby on Rails Maintainable? Posted by Cliff on Wednesday December 21, @12:51PM from the would-you-want-to-edit-the-code-later dept. kale77in asks: "I''ve become a big fan of Ruby over the past few months, but I''m not at all sure about Ruby On Rails. Automatic code generation sets of alarm bells in my mind; so that, to RoR''s promise of
2005 Dec 28
1
advice needed: damagecontrol or CIA?
Hi, I''m looking to set up a continuous integration server for a rails application. This application is under source control with darcs. I''ve read about damagecontrol and CIA, and wonder what experience you can share so I can make my mind. CIA seems to work with a post-commit so I should be able to use it with darcs. And as it is in the rails svn repository, I have good hope
2005 Dec 31
1
Custom Classes?
Ok, a bit of a possibly dumb question here. When working on Rails apps and I want to add a few custom class rb files to the project, where exactly should I put them? What folder is the best to place them in that things in the model and controller folder can see and use them? Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 31
1
search engine friendly URL params?
I have a site which is a listing of realestate offerings, written currently in PHP. With complicated .htaccess rules, going to the url site.com/listings/226/aid/29/ref/contact leads to the page listings/prop_view.php?id=226&aid=29&ref=contact... the beauty of this is that the link is SEO friendly and thus gains high rankings in the engines because they will reach it. question is,
2005 Dec 19
3
Is there a list of html_options for the FormOptionsHelper?
I''m looking for a way to select a default value from a select box, like this: select("user", "role_id", Role.find_all.collect {|r| [ r.name, r.id ] }, { :default_value => ''5'' } (of course, there is no ":default_value") If the form is being used on a ''create'' page, it should display a default in the select box. If
2009 Jul 29
9
partials...
I am getting a blank page, no errors, just a blank page. I have 2 files... reports/city_taxes_print.erb reports/_city_taxes_print.erb and my method is city_taxes_print and after getting variables from the controller, my erb file which is fairly basic... <% # City of Scottsdale @taxauthids = [ "32", "40" ] @report_title = "Scottsdale Sales Tax Detail Report for