Displaying 4 results from an estimated 4 matches for "yes_or_no".
2010 May 04
2
Encoding problems, applying a patch, how to???
...ngs:
UTF-8 and ASCII-8BIT"
The curious thing is that i have a few other views with "special"
characters, like Á or Ç, and all of them works. I have saved this view
using the UTF-8 char encoding and also, as you can see, added the
#enconding: UTF-8 comment in the top of the code. The yes_or_no method
returns both words "Sim" or "Não", but that actually works, since I
added the enconding comment. I recently added the word "Descrição" to
the view itself, and the word "Próximo" to the will_paginate method at
the bottom, and both fires the same error....
2002 Aug 09
0
Automation of public/private key generation
...RNAME=${LOGNAME}
if [ -x /usr/xpg4/bin/cp ]; then
CP="/usr/xpg4/bin/cp -p"
else
CP="/usr/bin/cp"
fi
################################################################################
### functions ##################################################################
#
## ++
yes_or_no()
{
# Takes two arguments, a PROMPT and the default value (Y | N).
# Returns 0 if the user specified "Y", nonzero otherwise.
#
if [ ${#} -ne 2 ]; then
return 1
fi
if [ "${2}" = "Y" ]; then
DEFPMPT="([Y]/N):\c "
DEFVAL="Y"
else
DEFPMPT=&q...
2006 Aug 01
3
Radio buttons and AJAX
...more than one update is required. I have to
make one appear and one disappear, which is 2 calls. This way you can
toggle back and forth.
The problem is calling the template. I couldn''t find a way to do
something like this that worked:
<%= radio_button "project", "yes_or_no", "1", :onclick => :url { :action
=> "show_yes" } %>
Then I tried:
<%=
observe_field(''project_yes_or_no_1'',
:url => { :action => "show_yes"})
%>
This only works some of the time, and only once. Once the template is...
2006 Mar 29
7
sshd config parser
Hi All.
For various reasons, we're currently looking at extending (or even
overhauling) the config parser used for sshd_config.
Right now the syntax I'm looking at is a cumulative "Match" keyword that
matches when all of the specified criteria are met. This would be
similar the the Host directive used in ssh_config, although it's still
limiting (eg you can't easily