similar to: Relationship woes! [Link to original unanswered post]

Displaying 20 results from an estimated 11000 matches similar to: "Relationship woes! [Link to original unanswered post]"

2006 Jan 12
5
Question about using DISTINCT in ActiveRecord find method.
Hi, Am relatively new to the RoR world. My question is quite simple. I have a query like such: shipmentNumbers = Order.find_by_sql(["select distinct s.id from orders o, line_items li, shipment_lines sl, shipments s where o.number=? and o.id = li.order_id and li.id = sl.line_item_id and sl.shipment_id = s.id", number]) The above query works fine. I wanted to do the same query using
2006 Sep 05
4
No matches
The following script creates a search index and then searches it. I get no results? Where am I going wrong? Thanks. -----------BEGIN SCRIPT---------------- require ''rubygems'' require ''ferret'' include Ferret path = ''/tmp/myindex'' field_infos = Ferret::Index::FieldInfos.new() field_infos.add_field(:name, :store => :yes, :index => :yes)
2006 Jan 31
4
RoR production app does not refresh
Hi, We have a RoR app deployed using Apache + fastcgi in production mode. When we make a change to say a controller filie on the server and go back to that page that executes that controller action it takes no effect. Does Rails cache pages and if so how does one force the new page to be used? Thanks,
2006 Jan 18
7
FastCgi issue
Hi, I know that Apache2 + fastcgi is sometimes difficult to setup, but I was wondering if anyone has come across this error and if yes what did you do to resolve it? [Wed Jan 18 14:58:12 2006] [error] [client 77.123.19.115] FastCGI: comm with server "/var/htdocs/ot/public/dispatch.fcgi" aborted: idle timeout (120 sec) [Wed Jan 18 14:58:12 2006] [error] [client 77.123.19.115]
2006 Jan 24
3
Is there a concise way?
Hi, Is there a concise/ruby way to do the following: [Note: 1 and 2 below are not related.] (1) for p in 0...@order.line_items[k].shipment_lines.length shipline_qty = shipline_qty + @order.line_items[k].shipment_lines[p].quantity end (2) ts = Array.new for tk in s.trackings ts.push(tk) end
2006 Apr 27
1
XML output ..
Hi, I have a method showme_xml in my controller manager_controller.rb class ManagerController < ApplicationController def shome_xml end end I have got a shome_xml.rxml template in my view section. -- Posted via http://www.ruby-forum.com/.
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I did: create table categories (name varchar(255) ); rails RJSTest cd RJSTest rake update_javascripts script/generate controller home index add script/generate model category Note: When I did a rake update_javascripts, I did not see any output. I configured database.yml to talk to mysql. Next I wrote
2006 Jun 30
2
File Column woes
I followed this guide http://www.fearoffish.co.uk/blog/article/file_column_and_lightbox to make sure I''d set everything up right, but when I point my browser to the page where I can upload a new file, I get a NoMethodError for "undefined method `file_temp'' for #<Image:0x252e254>" I am so confused. It''s fallen apart and I havent even tried using
2006 Jan 13
10
[Announcement] Google: Evil or Not?
"Google: Evil or Not?" is my first Rails webapp and I''ve just made it public at http://evilornot.info Do you still believe the ?Do no evil? Google mantra? Do you think Google Book Search, the AOL deal, and Larry and Sergey?s 767 point to Google losing it?s pristine morality and turning over to the dark side? Now you can discover what the world thinks and contribute your
2006 Aug 24
8
installing ferret
I am trying to test drive ferret on a ubuntu dapper installation. I have a ferret-test.rb file like: ----begin--------- require ''ferret'' include Ferret index = Index::Index.new(:path => ''/opt/search-index'') ----end----------- When i issue: ruby ferret-test.rb, I get: ferret-test.rb:1:in `require'': no such file to load -- ferret (LoadError)
2006 Mar 13
2
relationship woes
I have two tables: class PgmUpdate < ActiveRecord::Base has_many :pgm_visits, :foreign_key => ''pgm_update_fk'' ... and class PgmVisit < ActiveRecord::Base belongs_to :pgm_update, :foreign_key => ''pgm_update_fk'', :dependent => true ... According to the has_many docs (http://api.rubyonrails.org/classes/
2013 Apr 09
1
CDR unanswered setting
? Hi, From asterisk 1.8, the CDR table is not logging the unanswered or extn busy calls which hit while in the queue. I am talking about this setting in the cdr.conf : ; In brief, this option controls the reporting of unanswered calls which only have an A ; party. Calls which get offered to an outgoing line, but are unanswered, are still ; logged, and that is the intended behaviour. (It also
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2012 Sep 24
1
CDR Unanswered calls
Dear friends, ? I am not able to capture the CDR records for unanswered calls. Only one record per call is coming in the CDR table. In the cdr.conf, I have enabled it by setting : unanswered = yes ?
2007 Sep 12
2
Callback for unanswered transfers...
Hi, Does anybody know if there is a way for a call goes back to transferer if unanswered ? Thanks Luis A P Barbosa -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070912/1e356013/attachment.htm
2014 Apr 12
1
originate woes: extension never executes
Here's my cmd: originate MOTIF/8447/+12122064431 at voice.google.com extension s at greeting Greeting: [greeting] exten=> s,1,Wait(2) same=>n,Background("hello") same=>n,Wait(3) I can see the call go out (also in, since testing on one our own numbers), but [greeting] never executes. I'm expecting to see that when the motif call comes in and is answered,
2010 Jan 14
0
ISDN Cause codes for unanswered calls
I am wanting to use the ISDN cause code on an Asterisk 1.6 server to determine the status of a call attempt, where the call might not actually connect. Reason is I am checking for valid telephone numbers from a list of numbers, and I would like to know if the call has answered and cleared which I can by writing the hangupcause variable, but where I get an out of order network message, or number
2010 Sep 02
2
unanswered questions
Hello, Since some months I can not get any feedback from you for my questions in two different account with the same name. I just wonder is there any specific reason for it? Maybe my english is not so clear or I ask wrong questions for wrong lists I don't know but in any case I think I should have been informed. Sincerely Yours Murat Can Tuna
2006 Apr 27
3
XML output
Hi, Sorry abt the half finished post that I sent out earlier. The idea is to generate an output xml response as such: <?xml version="1.0" encoding="ISO-8859-1" ?> <response status=''NOT_AVAILABLE''> <message>Some text</message> <from>Me</from> </response> I make a request like such
2008 Mar 05
2
Transferring Unanswered Calls
Hi list, I'm wondering if it's possible to transfer a call that is still ringing??? I Have some Grandstream GXP-2000 and with the TRNF button it's impossible. So, I've configured some keys to transfer the calls like this: [featuremap] blindxfer => #2 ; Blind transfer (default is #) disconnect => *0 ; Disconnect (default is *) ;automon => *1