Displaying 20 results from an estimated 200 matches similar to: "beginners question"
2008 Aug 21
4
radio_button_tag - examining the selected value
Hi All
I have four radio buttons created like this
<%= radio_button_tag :answers, 1, false %> a <br/>
<%= radio_button_tag :answers, 2, false %> b <br/>
<%= radio_button_tag :answers, 3, false %> c <br/>
<%= radio_button_tag :answers, 4, false %> d <br/>
And then I have a link_to tag to invoke a controller function
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 =
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
2006 Jun 21
5
newbie - question on radio_buttons
I have a view with a form and i want to be able to process the button
selected in a controller - not sure how to do this. The form does not
map directly to a model - all I want to do is be able to pass back the
selected button and know which one it is.
So, i have a form and several radio buttons - the submit (not shown)
takes me to the process_answer action where I want to determine which
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 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='' +
2017 Jun 11
3
[PATCH] doc: Add notes about subframe sample size
>> I'm jumping in on this thread to make a few remarks about the spec. I
>> implemented a FLAC decoder by only looking at the spec, and I have a few
>> notes that would have saved me a lot of time if the spec had mentioned
>> them. They are obvious in hindsight, of course.
>>
>> * If the channel assignment includes a difference channel, then the
>>
2003 Apr 23
3
equipment
Hello, it is likely that I will have to analyze a rather sizeable dataset:
60000 records, 10 to 15 variables. I will have to make descriptive
statistics, and estimate linear models, glm's and maybe Cox proportional
hazard model with time varying covariates. In theory, this is possible in
R, but I would like to get some feedback on the equipment I should get for
this. At this moment, I have a
2004 Aug 13
2
smbpasswd overwrites existing displayname in LDAP entry
Configuration: Samba 2.2.8a with openLDAP 2.1.30 on a SeSE 8.2. server
When adding a user using a ldif file we give the user a given name, say Ruud Baart.
The cn and uid are the same, say 21cs12345 (a studentnumber).
After adding the user to LDAP the displayname is as expected: "Ruud Baart".
However after smbpasswd -a 21cs12345 -s secret the displayname is "21cs12345".
2016 Nov 02
3
No stats under FreeBSD 10.3
prw-rw-rw- 1 root wheel 0 Nov 1 13:09 stats-mail
prw------- 1 root wheel 0 Nov 1 13:09 stats-user
drwxr-x--- 2 root dovenull 4 Nov 1 13:09 token-login
If something other than root is trying to write to stats-user, we found the
issue.
this is on 10.3-STABLE
On Wed, Nov 2, 2016 at 12:13 PM, Timo Sirainen <tss at iki.fi> wrote:
> On 01 Nov 2016, at 22:31,
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) %>
<%
2016 Nov 01
2
No stats under FreeBSD 10.3
HI,
I?m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6))
Looks like there no statistics under FreeBSD.
Server isn?t busy yet but got at least a few connection open.
Added
mail_plugins = $mail_plugins stats
plugin {
stats_refresh = 30 secs
stats_track_cmds = yes
}
doveadm stats dump global
reset_timestamp last_update num_logins num_cmds num_connected_sessions
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
2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello:
I have radio buttons like this:
<% fields_for :goalhist do |g| %>
<table>
<tr>
<td align=left><%= radio_button_tag (''duedate'', 0, checked = false,
options = {:onclick => ""}) %>
Start now
</td>
</tr>
<tr id="detailed" style="display: none"><td colspan=2>
2006 Mar 01
4
another select_list question - bad bad booleans
I have a select list for a boolean column in postgresql
in the ''model'' ...
YES_NO = [
[ "Yes", "1" ],
[ "No", "0" ]
].freeze
in the ''view code'' ...
<%= options = [[''Accepted?'', '''']] + Placement::YES_NO
select("placement", "accepted",
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
2007 Apr 03
3
end_form_tag
In my logs I can see that end_form_tag is being deprecated. I wanted to
make the switch now but cannot get the new end tag to work.
THIS WORKS:
<%= form_remote_tag :url =>{:action => "next_question",
:kwiz_id => @kwiz.id,
:position => @next_position} %>
<% @question.choices.each do
2003 Aug 20
2
Command line R / PHP?
Greetings All,
Just a quick query about calling R. Looking through the manual you start R
with $ R, and then start calling R functions e.g plot whatever. Sounds
pretty funky, and R looks to be *the* open source maths package. Awesome
... I would like to call R from my favourite glue language PHP (rather than
call perl which calls R) if possible. To call R from the command line is
all this
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>
2003 May 15
3
ssl still not working
hi,
I'm just download the latest cvs and try to use imaps. in mozilla I've
got the following message window:
-----------------------------
mail.int.bppiac.hu received a message with incorrect Message
Authentication Code. If the error occurs frequently, contact the website
administrator.
-----------------------------
and there is only one OK button:-)
and this happens always. what can be