similar to: Associations counting

Displaying 20 results from an estimated 500 matches similar to: "Associations counting"

2008 Apr 09
2
Captive Portal with Shorewall
. "Saluton", Sorry by my poor english, I speak Portuguese. I does a captive portal using: - shorewall - dhcpd - thttpd (in port 8080) - maradns With Shorewall I use dinamic zones. The initial zone in shorewall is configured to redirects access to internal thttpd port 8080, that shows a login.cgi page. With thttpd I rewrite original url. The apache rewrite is very cool, but thttpd
2008 Apr 24
2
DNS problem (on NAT configuration)
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'><br> Hi,<br><br> I'm dealing with a problem that the worker nodes that are behind a NAT aren't able to reach outside from time to time. (ie: on a given moment I can ping an address name and immediately after I cannot: "ping:
2005 Mar 01
0
acts_as_tree counter_cache
Hi List, I''m new to and hot on RoR. And I have a question regarding acts_as_tree and counter_cache. What methods actually update the counter_cache column? I''ve only really started the app so i''ve just got it set up so that I can select the parent node (from a list of nodes that exclude all descendants of the current node) with a radio buttoned list named and valued
2008 Jun 09
0
RE: RE: VLAN and BRIDGE HELP
You are very welcome. One thing that I am working on now involves removing the step toward the beginning: xe pif-reconfigure-ip uuid=<UUID of the bond created above> mode=static gateway=<GATEWAY> IP=<IP ADDRESS> netmask=<NETMASK> DNS=<DNS SERVER ADDRESS> I do not believe that this step is necessary since we will not use the pif directly. We will use
2006 Jul 11
1
counter_cache, has_many and belongs_to
I am a bit confused about counter_cache here. The API docs http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html say that only the belongs_to association can take the :counter_cache option. When I try to use it on a has_many I get an "unknown key(s): counter_cache" error. Why would this be the case? belongs_to means that this model has a field with an id
2009 Jun 04
3
[LLVMdev] Structured Exception Handling (SEH) on Windows
On Jun 3, 2009, at 18:50, Eli Friedman wrote: > On Wed, Jun 3, 2009 at 2:20 PM, Joe Ranieri<joe at alacatialabs.com> > wrote: >> Has any progress been made on structured exception handling on >> Windows? I saw a post by Duncan Sands back in September 2008, but >> haven't seen anything since. I'm trying to generate code to run on >> Windows, but would
2006 Apr 16
2
conditional updated_on update
Hi list, I''ve got some counter_caches in a model. When these get incremented - say on a page view - my updated_on column also gets updated. How can I conditionally not update updated_on if just these counter_cache columns change? The problem with that is that I am using acts_as_versioned which clones the record each time updated_on changes. I am successfully ignoring the counter_cache
2006 Feb 27
0
Better counter_caches
Hey everybody, Rails currently offers ''belongs_to :counter_cache'', which is a very basic replacement for count triggers: ":counter_cache - caches the number of belonging objects on the associate class through use of increment_counter and decrement_counter. The counter cache is incremented when an object of this class is created and decremented when it?s destroyed. This
2007 Jun 01
2
Ferret FileNotFound error after adding counter_cache to mode
I have a model that I''ve been indexing and searching with ferret with no problems. I just added a counter_cache for some voting functionality to the same model and now when I perform the voting fxn on an object from that model, I get the FileNotFound error as it looks for a file named "_1c_1.del" ...which breaks my voting function. I tried killing the server and my index
2006 Apr 07
2
errors.add_to_base
What are the limitations on using: errors.add_to_base to display errors in views? I have tried for days to add errors from my object.rb and they never get displayed. class Keyword < ActiveRecord::Base validates_presence_of(:name, :message => "Name is required.") validates_uniqueness_of(:name, :message => "This name is already in use. Please try
2006 Apr 12
0
counter_cache and updates
I''m trying to figure out how to use counter_cache. I''ve got Clients that have many Profiles. And I got things working so that when I add a new Profile, the profiles_count gets updated. profile = client.profiles.new(params[:profile]) profile.save However, I''m stuck trying to figure out how to deal with UPDATING a profile (moving it to a different Client). If I change
2006 Mar 08
0
How to add something similar to :counter_cache - :avg_cache
Hi, I was thinking of doing this with a stored procedure, but I thought it could be better implemented in Rails. I have several tables that hold a counter cache for other tables, which aren''t directly related. For example: Table ''schools'' has records that belong_to table ''counties'', and that table has records that belong_to table
2005 Dec 14
0
counter_cache not updating
Hi I'm using those 2 models: class Topic < ActiveRecord::Base has_many :articles, :order => :rank end class Article < ActiveRecord::Base belongs_to :topic, :counter_cache => true end The "counter_cache" column in the "topics" table does increase when adding a new article, but it does not update when updating article's topic or when deleting the
2006 Mar 24
6
Should counter_cache fields be saved in the database?
As far as I can tell, the counter_cache option on a belongs_to model doesn''t actually save anything in the database. For example, I have the following models: class Parent < ActiveRecord::Base has_many :children, :conditions => "deleted_at IS NULL" end class Child < ActiveRecord::Base belongs_to :parent, :counter_cache => true end With the following
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id; new Ajax.Request( this.config[''url''], { method: ''get'', parameters: pars,
2006 Feb 03
2
acts_as_tree counter_cache behavior is different than API docs
Before I file a ticket, I''ll query ya''ll about this: The API docs for acts_as_tree''s counter_cache is to create a database column called "children_count" to hold the counter_cache. I have enabled this option in my model. While writing tests I wrote a test for creating children from the a parent: message = @forum_message["parent"].find child =
2009 Jun 03
2
[LLVMdev] Structured Exception Handling (SEH) on Windows
Has any progress been made on structured exception handling on Windows? I saw a post by Duncan Sands back in September 2008, but haven't seen anything since. I'm trying to generate code to run on Windows, but would really prefer not to ship libgcc... -- Joe Ranieri
2013 Feb 17
0
Terapia para Bebés: Aprenda a ajudá-los
Se não pode visualizar este e-mail corretamente, clique aqui <http://www.almasoma.pt/newsletter--terapia-para-bebes-aprenda-a-ajuda-los> . <http://www.almasoma.pt/> Formação em Terapia para Bebés Lisboa, Outono 2013 - Primavera 2016 Workshop: "Baby Clinic", 6 e 7 de Abril de 2013 Conferência de Apresentação, 5 de Abril de 2013 Karlton Terry Pioneiro da assistência aos
2009 Jun 03
0
[LLVMdev] Structured Exception Handling (SEH) on Windows
On Wed, Jun 3, 2009 at 2:20 PM, Joe Ranieri<joe at alacatialabs.com> wrote: > Has any progress been made on structured exception handling on > Windows? I saw a post by Duncan Sands back in September 2008, but > haven't seen anything since. I'm trying to generate code to run on > Windows, but would really prefer not to ship libgcc... I fail to see the connection between
2008 Feb 08
2
Dynamic resize of drawing canvas and FXImage
How can I use the drawing canvas and its off-screen image buffer, say FXImage, to dynamically resize or have its width and height attributes changed in reply to user interaction with the main window (FXMainWindow)? It seems that whem I put initial values to W and H of the canvas or FXImage, they remain with its initial values no matter what I do whem resizing the main window. -- Ranieri Barros