Displaying 20 results from an estimated 10000 matches similar to: "radio_button_tag - examining the selected value"
2012 Apr 18
2
RoR - Search Forms with Checkboxes, display appropriate results
I have a form that allows me to search a hotel by city or name and by
rating through radio buttons. It all works.
However, my hotel model has_one :facility, this facility model is
composed by several boolean fields (for example, roomservice:boolean
restaurant:boolean and so on)
The question is, I want to add checkbox fields for each facility I have
and in the search form, when the user selects
2007 Oct 11
3
radio_button_tag
Hello
I have a view which have 2 radio buttons :
...
<td style="width:5%">Actuel</td>
<td style="width:10%"><%= radio_button_tag(:actuel, value = "1", checked
= false, options = {}) %>
<td style="width:5%">Last</td>
<td style="width:10%"><%= radio_button_tag(:last, value = "1", checked =
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
Hi,
I have an advance search page and its code is as follows -
I have written my code like this
<div class="container">
<%= form_tag search_index_path, method: :get do %>
<%= radio_button_tag ''user_type'', ''customer'' %><p>Customer</p>
<%= radio_button_tag ''user_type'',
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
Hey All,
I''m trying to do a simple form_for (and I also get it with form_tag)
and I''m getting the following error:
ActionView::TemplateError (No :secret given to the
#protect_from_forgery call. Set that or use a session store capable
of generating its own keys (Cookie Session Store).) on line #2 of
users/new.fbml.erb:
1: <h1>Welcome To Courses, Let''s Get
2006 Jan 27
1
radio_button_tag quirkiness...
...or my ineptitude?
I found that the following is always checking the last ''things'' button
regardless of the value of query.table:
People:<%= radio_button_tag("query", "table", "P") %>
Animals:<%= radio_button_tag("query", "table", "A") %>
Things:<%= radio_button_tag("query",
2006 May 10
5
How to install etc
Dear Friends,
I am having a dedicated server for mine company and want to use that for
hosting purpose/VPS . Pl. tell me what are the various VPS technologies
available on free licence and if Xen is the answer how to install it and
how reliable is this.
Also i have RHEL 4.x and want not to reinstall the OS. Is there a method
without it as well.
Thanks,
Abhishek Jain
2008 May 16
3
radio button observe field only triggers once
Hi,
If i add field observers to radio button fields they trigger once but
then nothing after that. I have multiple fields in a form that i need
to know if one of them changes and which spedific field. Below is an
example of two foelds i tested and they trigger once with the alert but
then nothing after that. I also tried individual observers for each
field test_yes and test_no but with the same
2010 Jan 23
0
Problems with :onchange for radio_button_tag
Greetings,
I''ve been hitting my head to the wall over this for quite a while now
and don''t seem to be able to wrap my forementioned head around it.
Basically I have a list of users in a selection box and I have two radio
buttons: Sort by first name and sort by last name. This is what I have
in my view:
<%= radio_button_tag ''sort_by_last_name'',
2006 Mar 24
1
Radio Button Tag and hash @Params.
Hi,
I''ve a little problem using the Radio Button Tag.
I use the " @prove=MODEL.column_names() " to keep attribute names of a
table. After
i used this code to select a attribute subsets of them :
<% i=''0''%>
<% for @obj in @prove %>
<% @key='':key''+i%>
<%= radio_button_tag (@key,@obj) %>
<%
2008 Jul 20
1
selected attribute in options_for_select
Hello Everyone
I have a select_tag which I populate using a map, I use
options_for_select method to pass the map and "selected" value. For some
reason I can not get the option "selected" based on the value I pass to
the selected attribute. Here is the code
<%= select_tag :current_course,
options_for_select( Course.find(:all).map {|p| [p.title,p.id]},
@selected )
2016 Apr 11
2
Re: [Bug 1325687] network type="ethernet" not supported with LXC
Thanks Cole.
I need to use network type="ethernet" with LXC instead of Qemu.
I have reopened my bug.
On Mon, Apr 11, 2016 at 8:25 PM, Cole Robinson <crobinso@redhat.com> wrote:
> On 04/11/2016 09:24 AM, abhishek jain wrote:
> > Hi Team
> >
> > I'm trying to launch LXC VM with libvirt 1.2.12 having commit
> >
2006 Aug 04
2
observe_field for radio_button
Hi,
I need to observe a set of radio buttons but am having great trouble. My
observe_field looks like this:
<%= observe_field :user_select, :frequency => 0, :url => { :action =>
:admin_control } %>
Now it works fine if I use a text_field like this:
<%= text_field :user, :select, "size" => 20, "maxlength" => 16 %>
But I want a radio button, and
2017 Feb 15
1
Re: Error in libvirt-GUI
Thanks Martin.
I can only use RHEL6 so upgrading libvirt Version is not a choice.
RegardsAbhishek
From: Martin Kletzander <mkletzan@redhat.com>
To: abhishek jain <abhish_jain@yahoo.com>
Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com>
Sent: Wednesday, 15 February 2017 2:33 PM
Subject: Re: [libvirt-users] Error in libvirt-GUI
On Wed, Feb 15, 2017
2017 Feb 21
2
Re: 答复: Virsh command hanging
I can only use RHEL6.
Is it a bug in libvirt ??
RegardsAbhishek
From: 王李明 <wanglm@certusnet.com.cn>
To: 'abhishek jain' <abhish_jain@yahoo.com>; libvirt-users@redhat.com
Sent: Tuesday, 21 February 2017 11:54 AM
Subject: 答复: [libvirt-users] Virsh command hanging
#yiv0252501574 #yiv0252501574 -- _filtered #yiv0252501574 {font-family:Helvetica;panose-1:2 11 6 4 2 2
2006 Jun 28
3
observe_field and radio button... does not work?
I try to catch click event on radio button, but nothing is executed....
Tested with RoR 1.1.2 and 1.1.3. What am I doing wrong?
<%= radio_button_tag(:city, ''Dublin'') %>
<%= observe_field(:citi, :frequency => 0.5,
:on => ''click'',
:with => "''city='' +
2015 Jul 22
2
Re: libvirtd error missing cpu model
No XML containing guest information is formed.I'm getting error prior to
guest XML formation.
On Jul 22, 2015 3:00 PM, "Andrea Bolognani" <abologna@redhat.com> wrote:
> On Wed, 2015-07-22 at 14:09 +0530, abhishek jain wrote:
> > Hi Andrea
> >
> > Thanks for the reply.
> > Below is some more information regarding the same..
> >
> > uname
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails. Here is my form code
in a partial for the index action of a controller:
<% form_tag({:controller => controller_name, :action => ''index''},
{:method => :get, :class => ''form''}) do %>
<div class="columns">
<div class="column left">
<p>
2014 Jun 25
2
Re: qemu-bridge-helper issue
Hi Laine
I'm able to run the qemu-bridge-helper but with root authority.
I need to run it with non-root user.How can i do that?
Thanks
On Wed, Jun 25, 2014 at 5:43 PM, Laine Stump <laine@laine.org> wrote:
> On 06/25/2014 10:22 AM, abhishek jain wrote:
> > Hi
> >
> > I'm able to run the below command using root permission....
> >
> > sudo kvm
2014 Jun 18
3
bridge could not be initialized
Hi
I'm trying to run VM using libvirt.xml file and getting following error...
virsh start instance-00000003
error: Failed to start domain instance-00000003
error: internal error Process exited while reading console log output:
failed to launch bridge helper
kvm: -netdev bridge,br=qbr1f2191ce-38,id=hostnet0: Device 'bridge' could
not be initialized
Below is the libvirt.xml file..