Displaying 5 results from an estimated 5 matches for "tlianza".
Did you mean:
lianza
2006 Jul 24
2
Thread.new with ActiveRecord under Mongrel vs. FastCGI
Hi All,
I''m going to end up hosting a site on a server in a fastcgi environment,
but I''ve been doing most of my development under mongrel. I have a bit
of code that spawns a thread, and in the thread it makes some remote
calls (openuri) and does some database inserts via activerecord.
When I do this under FastCGI, everything appears to work as expected.
When I do it under
2006 Aug 12
2
Very weird counter_cache behavior
Hi All,
I''m using a counter_cache, which I believe I''m doing correctly because I
can see this SQL query being executed in the development.log file:
UPDATE gifts SET bookmarks_count = bookmarks_count + 1 WHERE (id = 276)
However, in the gifts table, the bookmarks_count field isn''t incremented
(it''s zero). If I literally copy and paste that query into the
2006 Feb 09
2
Strategies for updating multiple parts of the page with AJAX
Hi all,
I have a layout that''s evolving, but it looks like there will be several
divs. I''m trying to keep everything AJAX-y and avoid full page reloads. My
problem is, if I have the login box in a div, I''m going to want two other
divs to effectively "refresh" themselves to get data from the server now
that there is a user logged in.
I''m trying to
2006 Aug 14
1
Relationship not saving
Hi All,
I have a one to many relationship between images and gifts (one image
can be assigned to multiple gifts):
class ProductImage < ActiveRecord::Base
has_many :gifts
...
class Gift < ActiveRecord::Base
belongs_to :product_image
...
I''m trying to associate an image with a gift, and for the life of me
ActiveRecord will not associate them. Here is some test code and the
2006 Jan 15
1
Attributes of a relationship
Hi all,
I have two types of models which I''m not sure how to model (or if it''s even
feasible) with ActiveRecord. Let me know if you''ve got any good ideas.
1) For those of you who are familliar with del.icio.us, you probably know
that you can bookmark a site, and add your own tags to it. Each person has
their own tags for a site, even though multiple people can