Displaying 20 results from an estimated 100 matches similar to: "collection_select help"
2006 Jul 14
3
compare two tables and find the difference?
I need to compare a column in TableA to a column in TableB and then
select 3 columns from TableA for all the records in TableA that don''t
exist in TableB.
TableA and TableB are different but do have one field in common that i
am comparing. The tables are not related in anyway.
right now I have a find_by_sql query located in a model that looks like
this:
def self.absent_charges
2006 Jul 21
0
[Slightly OT] Need Query Help
I need to select 1 record from each client. This record has the charge
with the most severe charge type (lowest charge_type_id). How do I go
about this?
I have been using a find_by_sql query out of the client.rb that looks
like:
SELECT c.f_name AS f_name, c.l_name AS l_name, c.gender AS gender,
c.race AS race, c.dob AS dob, c.address AS address, c.city AS
city,
c.state AS
2006 Jul 28
1
How do I get an original file name from an upload using file_field?
I am uploading a .csv file for importing into a database; however, this file
does not need to be saved on the server. How do I get the file name of the
original file? I know about the file_column plugin but I don''t need/want to
save the uploaded file on the server, I just need to import it and delete
it. Right now the file name get returned as some random temp file name...
there has to be
2016 Jan 26
0
What to do when you've been hacked?
On Mon, January 25, 2016 19:12, Benjamin Smith wrote:
>
> Which I'd consider "best practices" and we do them.
> They are specifically asking about what to do *after* a
> breach. Despite all the best practices in
> place, there's *still* some risk.
>
If someone wants in to your network then they will get in. There is
no point in deluding yourself or your
2008 Jun 30
3
Is there a good package for multiple imputation of missing values in R?
I'm looking for a package that has a start-of-the-art method of
imputation of missing values in a data frame with both continuous and
factor columns.
I've found transcan() in 'Hmisc', which appears to be possibly suited
to my needs, but I haven't been able to figure out how to get a new
data frame with the imputed values replaced (I don't have Herrell's book).
Any
2012 Jun 07
1
Problems since upgrading to 2.1.6 from 2.0.20
Hello Everyone,
I saw the text about the change and needing to define an inbox namespace. Everything seems to work fine except doveadm. I get the following from a cronjob that has worked well for years now.
doveadm(account at example.com): Error: Syncing mailbox TRASH failed: Mailbox doesn't exist: TRASH
doveadm(account at example.com): Error: Syncing mailbox TRASH failed: Mailbox
2009 Oct 04
1
offlist Re: AW: Urgently needed Exercise solutions related to PracticalData Analysis Using R Statisctial Software
Accepted and forgotten. It just reminds us to check on our prejudices once
in a while. Also, I realized that my description was not entirely accurate.
You actually had to click the link on the page you posted to get this:
http://www.odesk.com/jobs/College-Assistance_~~dd7622f6bdef9177
I am an MSc. computer science student in a foreign university!
Need help to solve the exercises in the following
2005 Jun 06
6
Strange characters in 2.1.0?
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Signif. codes: 0 <80><98>***<80><99> 0.001 <80><98>**<80><99> 0.01
<80><98>*<80> <99> 0.05 <80><98>.<80><99> 0.1 <80><98> <80><99> 1
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
hmm... they go away when I
2006 Mar 09
16
Preloading child rows 2 levels deep?
I currently have 3 tables/models: 1) Clients, 2) Charges, and 3)
Court_Dates.
Clients 1..n Charges 1..n Court_Dates
I am trying to find all clients that have a court_date on a certain day:
something along the lines of (@client.charge.court_date.date ==
Date.today).
I have had success preloading child rows using the :include parameter,
but that only works with a parent and a child, or a
2008 Sep 19
2
[PATCH 0/5] bio-cgroup: Introduction
Hi everyone,
Here are new releases of bio-cgroup.
Changes from the previous version are as follows:
- Accurate dirty-page tracking
Support migrating pages between bio-cgroups with minimum overhead,
but I think such a situation is quite rare.
- Fix a bug of swapcache page handling
Sometimes, "bad page state" is occurred since the memory controller
has temporarily changed the
2008 Sep 19
2
[PATCH 0/5] bio-cgroup: Introduction
Hi everyone,
Here are new releases of bio-cgroup.
Changes from the previous version are as follows:
- Accurate dirty-page tracking
Support migrating pages between bio-cgroups with minimum overhead,
but I think such a situation is quite rare.
- Fix a bug of swapcache page handling
Sometimes, "bad page state" is occurred since the memory controller
has temporarily changed the
2008 Sep 19
2
[PATCH 0/5] bio-cgroup: Introduction
Hi everyone,
Here are new releases of bio-cgroup.
Changes from the previous version are as follows:
- Accurate dirty-page tracking
Support migrating pages between bio-cgroups with minimum overhead,
but I think such a situation is quite rare.
- Fix a bug of swapcache page handling
Sometimes, "bad page state" is occurred since the memory controller
has temporarily changed the
2006 Nov 04
0
Using collection_select and ajax
(I posted this earlier but it doesn''t appear on the group, so I''m
writing it again, If it appears twice, I apologize.)
I have a drop-down box that allows the user to select a language. I
want to use Ajax to render a filtered list of items based on the
language selected. I don''t want the user to press a Submit button nor
refresh the page, of course.
I''m using
2006 Aug 17
3
Use collection_select
I use the following code in my view:
<%= collection_select(''datedata'', ''date'', @allDate, :id, :date) %>
It''s show me the date of all entries in the database (Dropdown menu).
Additional, I wrote a helper method "showDate" in the
application_helper.rb! How can I use this method in the
collection_select for every date entry?
thanks
2006 Aug 17
0
HABTM and collection_select
Hi,
I''m trying to use collection_select with a habtm relationship. Let''s say
you have two tables: books and authors with a many-to-many relationship.
Is there any way in rails to render something like selection boxes for
each author, so that the user can change them?
I tried this (and several more variations) but it doesn''t work:
<% for @author in @book.authors
2006 Jun 09
0
options vs. html options in collection_select
I wanting to add an onchange event handler to collection_select but I''m not
sure how.
The api gives the signature as
collection_select(object, method, collection, value_method, text_method,
options = {}, html_options = {})
I''m not sure, however, if I need to place the desired code in "options" or
"html_options". I''m sure I could just figure it out
2006 Jun 22
2
Setting an index on a collection_select
I am creating a data entry form that allows a user to fill in multiple rows
and save them all at once. In my controller, I create an array of "person"
objects and pass it to the page. On the page, I have a text field like so:
<%= text_field "person", "name", "index" => 1 %>
Note the "index" attribute, which sets the name and id
2006 May 15
0
collection_select and API docs questions
Hello,
I''m wondering where in the docs am I suppose to find a complete list of
options for the collection_select helper?
For instance the API docs have an example for the select helper as
below:
select("post", "person_id", Person.find_all.collect {|p| [ p.name,
p.id ] }, { :include_blank => true })
Where the heck do I find valid values for the options and
2006 May 15
2
collection_select and validation problems
I keep getting the error below when I use validations with
collection_select.
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.inject
Extracted source (around line #22):
19: <td>Vendor</td>
20: <td>
21: <!-- vendors -->
22: <%=
2006 May 15
0
collection_select default
Hi,
I have a form where i have two drop down lists formed by using the
collection_select helper.
I need the second list "selected" item to change depending on what was
selected in the first list. I am currently using an onChange ajax call
when the first list is changed, but I cannot get the second lists
default value to change.
I have read that if I set the @variable.attribute