similar to: How to make optgroup with rails version 3

Displaying 20 results from an estimated 90 matches similar to: "How to make optgroup with rails version 3"

2006 Oct 18
1
optgroup and Javascript Issues
Is there a way to walk a select box that has multiple enabled and a few optgroup mixed in with other groups? The following seems to work without the optgroup tags in a multiselect list box. I have tired going threw the children of the optgroup but i was unable to pull a valid .value or .selected. Any Ideas? Thanks. var objGroups =
2013 Jun 17
2
Where to find groups to discuss rails source code?
Hi, Recently, I begin to read the source code of rails to learn more about the internal workings and design patterns of this framework. From time to time, I found I might want to discuss the way things are written. Is there a dedicated group or irc channels for this sort of discussion? Best, -- You received this message because you are subscribed to the Google Groups "Ruby on
2008 Jul 07
0
HAML and nestings
I have this partial: 1 - bairros = bairros_select 2 - selected_id ||= nil 3 - if bairros.any? 4 - cid = nil 5 = select_tag :imovel, :bairro_id do 6 - for b in bairros 7 - sel = b.id == selected_id ? {:selected => true} : {} 8 - if cid != b.cidade_id 9 %optgroup= b.cidade.cidade 10 - cid = b.cidade_id 11 %option{sel, :value =>
2010 Sep 17
1
option_groups_from_collection_for_select
Hi, in my development environment (Ruby 1.87, Rails 2.3.8) the following code works fine: <%= select "applicant", "member_1", option_groups_from_collection_for_select(@topics, :members, :topic, :id, :name, @applicant.member_1), {:include_blank => true} %> Producing: <optgroup label="Clinical Neuroscience"> <option value="1">Prof
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
Hi all, I have managed to compile libpng using wllvm and obtain the IR of pngpixel ( small tool which is part of libpng ). libpng has a function called png_check_IHDR: void /* PRIVATE */ png_check_IHDR(png_const_structrp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) { int error = 0; /*
2006 Jun 07
5
check_box:how to update 2 checkboxes dependent on each other
I''ve got the following problem, I''ve created two check_boxes in my view. The user has to select one check_box, but isn''t allowed to seth both of them together on true. Now i am looking for functionality that can help me doing the folling: Scenario 1 CheckBox1 = True, The user sets CheckBox2 from False to True, now CheckBox1 should automatically become False.
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
Hi David, My question is: why both #ifdef and #else branches are missing? I think at least one of the two should be present... In fact there is a case where the width could be greater then PNG_USER_WIDTH_MAX but not greater then PNG_UINT_31_MAX. That's why I was expecting at least one of the two... Thanks Alberto On Wed, Dec 18, 2019, 22:12 David Blaikie <dblaikie at gmail.com>
2016 Feb 03
1
[PATCH] generator: simplify generated code for always-available features
Just refer to the dummy function directly, instead of using #define's. --- generator/daemon.ml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/generator/daemon.ml b/generator/daemon.ml index 7ffea7b..d1689e1 100644 --- a/generator/daemon.ml +++ b/generator/daemon.ml @@ -732,19 +732,15 @@ and generate_daemon_optgroups_c () = pr " return 1;\n";
2012 Mar 19
0
[PATCH] inspection: Set last errno to ENOTSUP when inspection APIs are not available.
From: "Richard W.M. Jones" <rjones at redhat.com> Previously there was no programmatic way to tell if inspection APIs were unavailable because they are not compiled in (because hivex isn't around). This contrasts with daemon APIs where the availability is covered by the guestfs_available API. Change the inspection APIs so that when they are not available, the last errno is
2015 Jan 16
0
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
On Mon, Jan 05, 2015 at 01:01:52PM +0100, Pino Toscano wrote: > In data venerdì 26 dicembre 2014 16:17:49, Hu Tao ha scritto: > > Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> > > --- > > daemon/btrfs.c | 33 +++++++++++++++++++++++++++++++++ > > generator/actions.ml | 16 ++++++++++++++++ > > src/MAX_PROC_NR | 2 +- > > 3 files changed, 50
2007 Nov 29
0
WxRuby + Scintilla avec HTML + JavaScript
bonjour à toutes et à tous, d''abord désolé de ne pas parler/lire/comprendre l''américain/l''anglais, ce qui fait que j''ai beaucoup de mal à comprendre la doc par exemple. j''ai un souci d''utilisation de WXRuby avec SCIntilla, dans le cas d''un HTML + Javascript. je suis parti bien entendu de l''exemple scintilla.rb
2017 Feb 27
1
[PATCH] lib: Require libmagic.
If libmagic isn't installed then the guestfs_file_architecture API doesn't work. This means that inspection will always return <arch>unknown</arch> for every guest. This subtly breaks a few features. In particular it was reported that the virt-builder/virt-customize --install option did not work because the "unknown" architecture of the guest was not compatible
2014 May 20
2
Re: [PATCH 1/4] generator: add always-available optgroups
On Tue, May 20, 2014 at 07:54:45PM +0200, Pino Toscano wrote: > Support the possibility to have optional groups always enabled (e.g. > because they were present in the past, and they need to be kept for > users). > Add and use few helper optgroups-related functions to deal also with > them. What do you think about the attached addition to this patch? (It is meant to be squashed
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
If you have a struct containing ?field?, eg: type t = { field : int } then previously to pattern-match on this type, eg. in function parameters, you had to write: let f { field = field } = (* ... use field ... *) In OCaml >= 3.12 it is possible to abbreviate cases where the field being matched and the variable being bound have the same name, so now you can just write: let f {
2009 Apr 09
2
how to automatically select certain columns using for loop in dataframe
Hi, I am trying to display / print certain columns in my data frame that share certain condition (for example, part of the column name). I am using for loop, as follow: # below is the sample data structure all.data <- data.frame( NUM_A = 1:5, NAME_A = c("Andy", "Andrew", "Angus", "Alex", "Argo"), NUM_B = 1:5, NAME_B =
2017 Sep 14
1
Print All Warnings that Occurr in All Parallel Nodes
Dear R Users, I have developed the following code for importing a series of zipped CSV by parallel computing. My problems are that: A) Some ZIP Files (Which contain CSVs inside) are corrupted, and cannot be opened. B) After executing parRapply I can only see the last.warning variable error, for knowing which CSV have failed in each node, but I cannot see all warnings, only 1 at a time. So: *
2018 Jan 15
0
sum multiple csv files
Your message seems unclear, and as evidence the respondents are giving various answers. You should provide a small sample of input and output data as it would look in R to avoid this kind of thrashing about. See [1][2][3] for guidance. Note that you also really need to figure out how to make sure your email program sends plain text, because HTML formatting WILL be stripped by the mailing list
2015 Jan 05
3
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
In data venerdì 26 dicembre 2014 16:17:49, Hu Tao ha scritto: > Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> > --- > daemon/btrfs.c | 33 +++++++++++++++++++++++++++++++++ > generator/actions.ml | 16 ++++++++++++++++ > src/MAX_PROC_NR | 2 +- > 3 files changed, 50 insertions(+), 1 deletion(-) > > diff --git a/daemon/btrfs.c b/daemon/btrfs.c > index
2016 Nov 21
2
Winbind traffic not encrypted
A problem here getting winbind traffic to be encrypted using Kerberos. I have set up a test environment with a pair of servers (actually lxc containers): - samba server (ubuntu 16.04, stock samba 4.3.11) - client machine (ubuntu 16.04) joined with "net ads join" and winbind The client machine has the following in /etc/samba/smb.conf: ------- [global] #netbios name = client-ad
2017 Nov 17
0
Dataframe is character
class("dat") is different from class(dat), which is what you actually want. On 17-11-17, P. Roberto Bakker wrote: > Hi everybody, > > Question: why are my dataframe and numeric variables a character? > > I read an excel file via readxl but my dataframe is a character, and > numeric variables, eg "yi", are also a character. > My excelfile is in English