search for: ref_id

Displaying 9 results from an estimated 9 matches for "ref_id".

2009 Mar 10
5
'unknow column error' when using include and associated table condition in find
Here is my weird problem. Two models like following: Lexeme id:int name:string Structure id:int ref_id:string meta_id:int Lexeme can have many structure records through foreign key ''ref_id'' in the structures table. And these structure records belonging to one lexeme differs between each other using meta_id. And if Lexeme has structures, then there must be a top_struct whose struct...
2007 Mar 21
2
ORA-03106: fatal two-task communication protocol error
...n sequence creates tables) vi db/migrate/001_create_structures.rb ... def self.up create_table :structures do |t| t.column :amw, :float t.column :gvk_id, :string t.column :parent_id, :float t.column :ism_parent_id, :float t.column :ref_id, :float t.column :mechanism_id, :float t.column :ism, :text t.column :norm_ism, :text t.column :coords, :text t.column :cflag, :float t.column :vis, :text t.column :val, :text t...
2006 Apr 17
0
polymorphic association with single model as target
...ot;#{key} is #{value}"} target = i.delete :target end end ... process table name base on target and call set_table_name super end The model that contain the marks to the dictionary entries is defined like this: belongs_to :ref, :polymorphic => true I use the ref_id as foreign key (as in all the examples) and ref_type as INTEGER with a number defining the dictionary I''d like to refer too. Doing the "joins" myself as in the exemple below works well. @marks_en = DbDict.find(:all, :target => DBDICT_EN_TYPE,...
2005 Nov 02
1
getting pagination to work on joined tables
...nd out which ids count on for current page limit, offset = @reos_pages.current.to_sql reo_ids = Reo.find :all, :conditions => conds.join('' AND ''), :joins => ''JOIN lang_reos ON reos.id = reo_id'', :order => ''ref_id ASC'', :limit => limit, :offset => offset # and finally I can use :include @reos = Reo.find reo_ids.collect { |r| r.reo_id }, :conditions => ([''primary_pict=1''] + conds).join('' AND ''), :include => [:lang_...
2007 Jan 10
1
Proposal for meta-data (third revision)
...ther purposes. Changes were: * Changed the syntax for compatibility with a future extension mechanism. The first character in the curly braces must be a colon, optionally followed by a space: {: ref .class #id} The old syntax was `{ref .class #id}`. For ALDs, the new syntax is: {:ref_id: key=val .class #id } instead of: {ref_id}: key=val .class #id Converters that don't use this syntax may just ignore everything which is in curly braces and starts with ":". For regexp-based interpreters, this is the regular expression to get rid of this stu...
2006 Feb 14
25
Rails and background tasks/threads
I am just getting into web servers/web applications and rails as well so bear with me. I am trying to write a web app that, based on a users input from the browser, will perform some task, and update the browser (ala ajax style) as needed and/or provide a way for the user to control the background task. Now, I have more experience with java servlets, which makes this easy enough for a beginner.
2006 Apr 06
7
LoginSystem : make @session available to models
...on) unless kind_of?(History) history = History.new(:action => action) history.ref = self history.save end end end With, roughly, a History model like : :user_id # who performed the action :action # the action :date # when :ref_table # the table of the altered model :ref_id # the id of the altered model (In models/history.rb) class History < ActiveRecord::Base def ref=(object) write_attribute(''ref_table'', object.class.table_name) write_attribute(''ref_id'', object.id) end before_create :fix_history before_update :...
2003 Apr 24
0
Openssh-unix-dev, Hello! My name is John Turner....
Hello. My name is John Turner.... I am the customer of AURUM INVESTMENT There is nothing like this program. At first I spent 800$ and in 4 weeks I have earned more than 300$ of profit I am really impressed. You doesnt get any better than this. Just follow the link http://am-it.biz//sign.php?ref_id=28934887 There is only one honest way to get money: to invest them wisely Money and you must keep a good company, right? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20030424/d95b9faf/attachmen...
2003 Apr 29
0
Hello Openssh-unix-dev! Here it is! program of your dreams!
...r the most reliable high yield investment program? Here it is! Aurum Investment is a program of your dreams! I was really impressed with their new programs! They are too handy! You must try them! They offer from 2.0% till 3.3% daily!!! Please, follow this link: http://am-it.biz/sign.php?ref_id=121689 Chuck Hunter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20030429/f0ba48d3/attachment.html