search for: agent_id

Displaying 13 results from an estimated 13 matches for "agent_id".

Did you mean: agent_fd
2009 Oct 04
3
Problem using ActiveRecord find with :joins and :select
Hi guys, When I do: temp = User.find(:all, :joins => "INNER JOIN contents ON users.agent_id = contents.id", :select => "contents.id, users.id, users.u_date") temp.first.inspect It seems to work fine, but it only returns: #<User id: 6, u_date: "2009-10-03 19:32:23"> but not the contents.id information. I don''t get it, and I do...
2006 Jan 22
2
suggest for "ambiguous column" when JOIN associated tables
...E TABLE keywords (id, group_id); class Keyword < ActiveRecord::Base belongs_to :group, :class_name => "Keyword", :foreign_key => "group_id" end 2. Your record has two associations with the same table CREATE TABLE artworks (id, author_id, agent_id); class Artwork < ActiveRecord::Base belongs_to :author, :class_name => "Person", :foreign_key => "author_id" belongs_to :agent, :class_name => "Person", :foreign_key => "agent_id" end...
2009 Nov 25
1
Puppet custom functions and user permissions
...` fout.puts File.executable?("/var/ossec/contrib/ossec-batch- manager.pl") fout.close # If it does not exist add the fqdn to ossec with ip if($? != 0) output = `/var/ossec/contrib/ossec-batch-manager.pl -a -n #{fqdn} - ip #{ip}` end # Now extract the key for the fqdn from ossec agent_id = `cat /var/ossec/etc/client.keys | egrep #{fqdn} | awk ''{print $1}''` key = `/var/ossec/contrib/ossec-batch-manager.pl -e #{agent_id}` if($? != 0) raise Puppet::ParseError, "Could not retrieve key for:" + fqdn end return key end end Output in ossec_client_key....
2006 Jan 13
4
Single Table Inheritance (this is my 3rd post :( )
...ass Vendor < Company end class Customer < Company end class Agent < Company end Now I have a active record Association class QuoteSheet < ActiveRecord::Base belongs_to :customer has_many :vendors has_one :Agent end Now in the table quote_sheets should I use vendor_id, customer_id, agent_id or just company_id since all of them are in 1 table called companies. I have read agile wweb development with rail, and no where it says about relationship like this. Thanks with best regards, Vikrant
2020 Jul 21
11
[RFC PATCH 0/4] PAM module for ssh-agent user authentication
Hi, The main (and probably the only) use case of this PAM module is to let sudo authenticate users via their ssh-agent, therefore without having to type any password and without being tempted to use the NOPASSWD sudo option for such convenience. The principle is originally implemented by an existing module [0][1] and many pages that explain how to use it for such purpose can be found online.
2007 Jun 20
0
WHAT happened to AgentMonitorOutgoing(c) in Asterisk 1.4.5 ??
Recently installed 1.4.5, and still unfortunate to find out that the 'c' option in AgentMonitorOutgoing() still doesn't work ('c' - change the CDR so that the source of the call is 'Agent/agent_id'). It wont change the source channel column in the CDR to 'Agent/agent_id' like it used to in 1.4.2 and other releases older than that. I hope this gets fixed in the next release, we need this for our call monitoring script. http://bugs.digium.com/view.php?id=10011 -------------- next...
2006 Apr 02
0
STI and through
...; varchar(255), "description" text ); So I''ve got ReferenceItem and Agent classes, each of which has subclasses (for the first, stuff like Book, Article, etc.). The third key table links the above: CREATE TABLE contributors ( "reference_item_id" integer, "agent_id" integer, "position" integer, "type" varchar(20) ); The Contributor class currently has four subclasses: Author, Editor, Publisher, and Translator. So the idea is I need to be able to separely track the type and order of each class. So how do I get this correctly setu...
2006 Mar 08
1
Nil Object Error
...m having a problem with edit/update of records when using form validation. Here are my files for reference. ticket.rb ============ class Ticket < ActiveRecord::Base belongs_to :agent belongs_to :status belongs_to :priority belongs_to :category validates_presence_of :employee_id, :date, :agent_id, :status_id, :priority_id, :category_id, :summary end ticket_controller.rb ============ class TicketController < ApplicationController layout "standard-layout" scaffold :Ticket def edit @ticket = Ticket.find(params[:id]) @employees = Employee.find_all @agents = Agent.find...
2014 Aug 12
1
Asterisk 12.4 "Agent Busy" message on AgentRequest
Hi, I am upgrading from Asterisk 1.4 to 12.4. I am able to authenticate the user and call AgentLogin. But after that when I call AgentRequest I keep getting Agent '1234' is busy. If I put a delay of 5 second or more before calling AgentRequest then it works most of the times. Here's my dialplan: [login] exten => s,1,Background(thank-you-for-calling) same =>
2006 Apr 09
4
Inheritance via Though Associations?
...create_table :contributors do |t| t.column :type, :string, :default => "Person" t.column :sort_name, :string, :limit => 255, :null => false end create_table :contributions do |t| t.column :reference_item_id, :integer t.column :agent_id, :integer t.column :type, :string t.column :position, :integer end Drawing on this article ... <http://blog.hasmanythrough.com/articles/2006/02/28/association-goodness> ... I have no problem using the through relation to be able to do stuff li...
2006 Jun 27
0
(no subject)
...r can receive a new call ; note this is in milliseconds. ; ;wrapuptime=5000 ; ; Define the default musiconhold for agents ; musiconhold => music_class ; ;musiconhold => default ; ; Define updatecdr. This is whether or not to change the source ; channel in the CDR record for this call to agent/agent_id so ; that we know which agent generates the call ; ;updatecdr=no ; ; Group memberships for agents (may change in mid-file) ; ;group=3 ;group=1,2 ;group= ; ; -------------------------------------------------- ; This section is devoted to recording agent's calls ; The keywords are global to the c...
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential_listings#new undefined local variable or method `foo'' for #<ActionView::Base: 0x3fb53f8> I am trying to call the variable ''foo'' in a partial called _attachment.html.erb, which is nested in
2006 Nov 06
21
acts_as_ferret and associations
I have the following models: class Book < ActiveRecord::Base acts_as_ferret belongs_to :author end class Author < ActiveRecord::Base has_many :books end and in the controller: def search if params[:query] @query = params[:query] @total, @books = Book.full_text_search(@query, :page => (params[:page]||1)) @pages =