similar to: observing a habtm association

Displaying 20 results from an estimated 120 matches similar to: "observing a habtm association"

2006 Sep 15
2
Caching::Sweeper Access to Controller
Hello, I''m running Mongrel 0.3.13.3, cluster 0.2.0, and Rails 1.1.6 and I have a problem with a sweeper not having access to the controller instance. NoMethodError (undefined method `session'' for nil:NilClass): /app/models/audit_sweeper.rb:16:in `log'' /app/models/audit_sweeper.rb:9:in `after_update''
2010 Jan 25
1
ActionMailer does not find templates in production mode
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missing template event_mailer/approval_requested_notification.erb in view path app/views):
2010 Apr 16
1
Active Record observers broken: can't be used for "before" callbacks
I was just wondering what about a report that I made almost 2 months ago: Active Record observers broken<https://rails.lighthouseapp.com/projects/8994/tickets/4087-activerecord-observers-cant-be-used-for-before-callbacks> I think it''s a pretty big bug. In Rails 3, creating an observer with a "before_save" callback (for instance) will result in all observed models being
2007 Jul 26
1
Lohan the observable
Sorry, that name is a misnomer. However, I was excited to find that Ruby has a built in Observable module and I''m pretty bored, so I apologize in advance.... require ''observer'' # one who is observed class Celebrity include Observable attr_accessor :name attr_reader :is def is=(val) @is = val changed notify_observers(self) end end # one who
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2008 Apr 09
5
intermittent BJ errors
hi all I''m running background tasks using BJ 1.0.1 (gem version). On some requests, the tasks are executed as expected. On others, I get the following error: RuntimeError (no bj found in ["/u/apps/igniter/releases/20080408205801/ script", "/bin", "/usr/bin", "/sbin", "/usr/sbin"]): when it runs, it runs fine but does anyone know what
2010 Oct 04
3
Loop too slow for Bid calc - BUT cannot figure out how to do with matrix
Hi, I am trying to create Bid/Ask for each second from a high volume stock and the only way I have been able to solve this is using loops to create the target matrix from the source tick data matrix. Looping is too slow and not practical to use on multiple stocks. For example: Bids Matrix (a real one is 400,000++ length): Bid Time 10.03 11:05:03.124 10.04 11:05:03.348 10.05
2006 Jul 06
2
@oldbid = 0 why?
Okay I''ve been working on a little biding system. In my model I have class Item < ActiveRecord::Base has_many :bids def highest_bid @bid = 0 self.bids.each do |bid| if @bid == nil @bid = bid.max else if bid.max > @bid @oldbid,@bid = @bid,bid.max end end end if @oldbid == 0 "#{@bid} - #{@oldbid+1} = #{@bid -= @oldbid+1}" else dif =
2006 Jul 01
3
Where to solicit bids on RoR project?
Where is the best place to solicit bids on a mid-size web app? (budget ~$15,000) What is the appropriate protocol for posting RoR RFPs? Thanks! Taylor -- Posted via http://www.ruby-forum.com/.
2006 Jul 02
2
nil.- what the heck...
Okay first off here''s the error: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.- Here''s the code in the model: def highest_bid @bid = nil @oldbid = 0 self.bids.each do |bid| if @bid == nil @bid = bid.max else if bid.max > @bid @oldbid,@bid =
2007 May 15
4
Feasibility Request
I have a ton of Nortel MICS/CICS phone systems and am looking for an easy way to integrate them. Two questions arise: 1. Is it feasible to use asterisk as a Man in the Middle for a T1 PRI system? The idea is to intercept outbound calls from the Nortel PBX and redirect them via VoIP to another asterisk box at another branch transparently(thus saving the LD cost). Otherwise I'd pass
2004 Feb 19
1
reshape direction=wide
Hello I am reshaping a data.frame bids --> reshaped as shown below. I thought this should be possible with a single invocation of reshape, but the only way I came up with is reshaping subsets for each keyword and then joining them together. Does anyone have an idea how to solve this in a more elegant way? Efficiency is a concern as the datasets are very large. Is there a way to specify
2006 Jun 08
1
Observable notifying a controller.
I want to code the following task: I have a class, for instance, class A with is a observable. I want to add a controller of my rails system to this class. So I can notify_observer, and it updates all controllers of my system. How do I pass a controller as a parameter to the add_observer() method? And where I put this code? Thanks in advance. Fernando Lujan
2003 Sep 11
1
How much to charge for Asterisk installations?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a medium sized business that is interested in implementing * as their PBX system. They currently have a Panasonic system with Panasonic handsets that they are going to replace Asterisk with, as the current system is maxed out, and they don't even have voicemail capabilities. I have been considering using an Adtran Atlas 550 with FXO and
2020 Mar 25
5
thoughts on tripp lite Smart Online UPSs?
We're looking at replacing some old APC SmartUPS 5000s with something that has USB so NUT can more easily talk with it (and yes, I've tried USB-RS232 adapters and every one I tried started kicking out errors within a few hours). One of the bids we have is for a "Tripp Lite UPS Smart Online 5000VA 4500W Rackmount 5kVA 200V/240V" as the potential replacement unit. I have no
2018 Mar 05
2
Interpret List Label as Date from Quantmod getOptionChain
Package? Quantmod. In the subject line. I agree that they look like dates, I don't know how to determine if they are actually dates. Josh Ulrich usually answers questions along these lines very informatively and quickly. One reasonable course of action is to wait to see if he does the same with this one. --JJS ________________________________ From: Bert Gunter <bgunter.4567 at
2018 Mar 05
0
Interpret List Label as Date from Quantmod getOptionChain
On 5 March 2018 at 02:46, Sparks, John wrote: | I agree that they look like dates, I don't know how to determine if they are actually dates. You know options but you are confused about maturity dates, i.e. expiry? In information in that list (ie along the date dimension) is the expiry; at each date you have another list for both puts and calls, and inside each of those a grid given by the
2006 Jan 11
6
UK Rates for RoR Contract work?
Hi all, I''ve been offered a short-term contract here in the North of England - around 3 months work, but with RoR I think it will take considerably less time - and am just curious what market rates were right now. I''ve been offered a little under ?1k/week which seems ''right'' for a PHP coder doing this kind of work, but should I be hitting for more, or is
2006 Oct 24
1
Locking issues when adding to the Index
Hi, I keep getting locking errors when updating my index which puzzles me since only one process is supposed to be accessing the index at a time (at least in development mode). I''m using Ferret with Rails (NOT acts_as_ferret, though) and employed an observer to add a new document to the index when a new ActiveRecord is created. I''m not sure if this has any impact on the
2003 May 27
7
2 4-port T1 cards
Are there any known issues with putting 2 4-port T1 cards in a single box and having all ports and all channels in use at the same time? Planning on 4 of these boxes, dual AMD cpu MB from MSI, 512m, redhat 9, agp video, on board NICs, serial ata raid. Any input would be appreciated. -Joe