Displaying 20 results from an estimated 128 matches for "client_id".
Did you mean:
client_ip
2005 Dec 29
3
Post problem with select lists
hey,
i have this problem
how come i always get -1 for the select list??
rhtml
First, select a client.
<select id="client_id" name="client[id]" onChange="submit();" >
<%= options_for_select(@client_options, @client_id.to_i) %>
</select><%= @client_id %>
controller
if @request.post?
if @request.xml_http_request? #called by ajax,
@client_id = -2
else
@client_id = -1...
2006 Feb 08
2
compound conditions in find
can''t seem to find the right syntax for this...
/script/../config/../app/controllers/placements_controller.rb:155:
syntax error
:conditions => [["placements.client_id = ?",
params[:client_id] ] and "placements.discharge_date IS NOT NULL" ],
this part works...
:conditions => ["placements.client_id = ?", params[:client_id] ]
this is what I want to add...
"placements.discharge_date IS NOT NULL"
You can see above one of the m...
2007 Oct 25
1
find - group - postgres
...at this is entirely a rails question as I am trying to
run the command in postgres and I am getting the same error...
controller code...
@client_slot_count = ClientSlotsDaily.find(:all,
:conditions => ["created_at > ? AND created_at < ? AND
facility_id = ? AND client_id IS NOT NULL",
starting_date, ending_date, @facility.id],
:group => ''client_id'')
error reported is...
PGError: ERROR: column "client_slots_dailies.id" must appear in the
GROUP BY clause or be used in an aggregate function
: SELECT * FROM client...
2006 Jul 08
4
Hidden fields in forms
...rms, this is my code
<%= start_form_tag :action => ''create'' %>
<div class="form1">
<table width="auto" boader="8" cellspacing="5" cellpadding="5">
<% hidden_field ''line_item'', ''client_id'', :value => session[:client_id] %>
<% hidden_field ''line_item'', ''product_id'', :value => 999999 %>
<% hidden_field ''line_item'', ''sort_key'', :value => "saa" %>
<% hidden_field '...
2006 Apr 19
1
AJAX, Response codes and Opera.
...age made up of a few divs and a form
using
form_remote_tag like so:
<%= form_remote_tag :update => { :failure => ''content'', :success =>
''body'' }, :url => { :controller => ''server'', :action => ''create'',
:client_id => params[:client_id] } -%>
<%= render :partial => ''form'' -%>
<%= end_form_tag -%>
As you can see depending on the success or failure two different divs
are updated. The backend code has this line.
def create
@server = Server.new(params[:server])...
2011 Jan 02
1
fb-connect -Missing client_id parameter
...in my application for login and registration
process using authlogic + authlogic connect gem.
It works good in local machine, but in server it shows the error
message like this.
{
"error": {
"type": "OAuthException",
"message": "Missing client_id parameter."
}
}
Pls provide some solution to fix this.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscrib...
2006 Apr 13
1
Adding a title to an AJAX link.
...API says that
link_to_remote is
link_to_remote(name, options = {}, html_options = {})
If I try:
<%= link_to_remote area.name, :update => ''content'', :title => area.name,
:url => { :controller => ''area'', :action => ''show'', :client_id =>
area.client_id, :id => area.id } -%>
Then the title isn''t created. if I try anything else (Putting the :title
and :url inside a pair of curly brackets for example):
<%= link_to_remote area.name, :update => ''content'', { :title =>
area.name, :url =...
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select
field, such as
<%= collection_select("job", "client_id" , @clients, "id", "name") %>
with onChange="xxx"
Anyone know how to make this work?
Thank you,
Scott
--
Posted via http://www.ruby-forum.com/.
2007 Dec 22
3
collection_select validation problem
...ne. What do I need to
do to get the Rails validationvalidates_presence_of error?
Here''s the code:
MODEL
class Client < ActiveRecord::Base
has_many :programs
validates_presence_of :eid, :name
end
class Program < ActiveRecord::Base
belongs_to :client
validates_presence_of :client_id
validates_associated :client
end
CONTROLLERS
def new
@program = Program.new
@clients = Client.find(:all, :order=>"name")
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @program }
end
end
def create
@program = Pr...
2011 Feb 22
1
collapsing by a key in a compound database
Hello all.
I have a problem with collapsing by a key in a compound database. I have
2 databases (e.g. clients and client branches), both of them have the
same attribute (with the same valueno), `client_id'.
What I need is to search in both these databases and collapse results by
`client_id' to get client IDs (set_collapse_key is used with
collapse_max=1).
The problem is that I receive 2 equal `client_id' values in the MSet
(one per database?).
Is it possible to get unique collapsed va...
2006 Jun 13
13
Pass infomation between different views and controllers
Hi, I am a rails and ruby nuby :-)
How do you pass data between different controllers and views? I have a
page ( a quote) that I am editing url ....quote/edit/6 6 id the
current id. I then go to a catalog (url....catalog) to add an item to
my quote (I do this via a line_item file that the quote reads) I now
want to go back to the quote. I have tried this
<%= link_to ''Back to
2006 Feb 10
2
How do I test actionview helpers in the console?
I would like to see the output of actionview helper methods, to be able
to play with it.
When I do the following in the console:
collection_select("job", "client_id" , @clients, "id", "name")
I get:
NoMethodError: undefined method `collection_select'' for
#<Object:0xb7cf1970>
I''d like to get something like:
<select name="job[client_id]">
<option value="1">Francisco Hernan...
2010 Dec 29
1
filling up holes
I have a data frame with three columns
client ID | date | value
For each cilent ID I want to determine Min date and Max date and for
any dates in between that are missing I want to insert a row
Client ID | date| NA
Any help would be appreciated.
2012 Jul 15
1
Facebook redirect
Hi everyone
I have this Application witch won''t redirect, I think it''s because there is
another redirect, I mean when i redirect to the FB url
(https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=http://localhost:3000/)
I know there is another redirect, but I can''t get rails to follow this
redirect. I had tried to google it, but
I thought, I can''t find the right keywords. My server log look like this:
> Redirected to
> https://www...
2006 Mar 22
4
Newbie - populating select list from db
...d an example of this anywhere - how do I populate a
select list in a form from a database?
I have a form to create a new task. The task is for a client, so there
should be a select list populated from my clients table. I thought this
would work:
<%= select ''task'', ''client_id'', Client.find_all, "id", "name" %>
but I get this error:
undefined method `stringify_keys'' for "name":String
Obviously I''m missing something...
And then is this going to work properly when I''m using the same form
partial to e...
2020 May 31
1
auth_policy_server vs client_id and x-originating-ip
...7]:?? protocol: 'imap',
May 31 14:20:58 mail auth-policy[10357]:?? pwhash: '097a',
May 31 14:20:58 mail auth-policy[10357]:?? remote: '1.2.3.4',
May 31 14:20:58 mail auth-policy[10357]:?? tls: true
May 31 14:20:58 mail auth-policy[10357]: }
However in some cases I see that client_id is passed to auth_policy_server:
May 31 14:27:41 mail auth-policy[10357]: {
May 31 14:27:41 mail auth-policy[10357]:?? device_id: '"name"
"Outlook-iOS-Android" "version" "2.0"',
May 31 14:27:41 mail auth-policy[10357]:?? login: 'yyy at example.x...
2006 Jul 16
4
Calculations across multiple tables
...done using find_by_sql in the past) is get
a sum of the timespan given by ended_at - begun_at for each client.
Is it naive to imagine that AR''s calculations will span relations to provide
a grouped result?
The SQL I''m feeding to find_by_sql comes out something like this:
SELECT client_id, task_id, project_id, clients.client_name,
tasks.description,
time_records.start_at,
(SUM(TIME_TO_SEC(time_records.end_at) -
time_to_sec(time_records.start_at)) / 60) AS total_client_minutes,
(SUM(TIME_TO_SEC(time_records.end_at) -
time_to_sec(time_records.start_at)) / 3600)...
2013 May 14
5
Why joins queries make result readonly?
...ders"."id" INNER
JOIN "specialists" ON "specialists"."id" =
"order_executors"."specialist_id" WHERE "specialists"."id" = 1
=> [#<Order id: 20, orderable_id: 11, orderable_type: "PlanDevelopment",
client_id: 1, completion_status: "finished", created_at: "2013-05-13
20:48:19", updated_at: "2013-05-14 00:36:38", price:
#<BigDecimal:67e5898,''0.14E2'',9(36)>>]
I see no additional columns but Order.by_executor(1).first.readonly? is
true. Is that n...
2005 Dec 23
1
pagination problem
hey,
i have this problem
in the database i have 32 records
and the sql filtered 4 records
#getting the callerid records depending on the given paramaters and paginate it
@callerid_pages = Paginator.new self, CallerId.count, 10, @params[''page'']
@caller_ids = CallerId.find(:all, :conditions =>["geotags.firm_id = ? ",
@firm_id], :order => " geotags.address1
2006 Jan 27
4
find.collect problem.
Hi all.
I am trying to populate a dropdown based on two values.
def self.clientref( reference )
@bugclientrefs = self.find_all(["bug_id = ?", reference]).collect {|b|
[ b.client_id.strip << " - " << b.client_ref.strip ]}
end
This works fine. However this returns the reference to the client. I
want the full name using this function.
class Bugclient < ActiveRecord::Base
set_primary_key "bc_ref"
def self.fullname( reference )
result...