Displaying 3 results from an estimated 3 matches for "_true".
Did you mean:
true
2008 Dec 07
0
boolean button helper
...doing this with radio buttons
typically takes 5 lines of html: 3 labels and 2 radio buttons.
Here''s a simple boolean button helper that you can put in your custom
form builder.
class YourCustomFormBuilder < ActionView::Helpers::FormBuilder
...
def boolean_buttons_for(method, label_true = "true", label_false =
"false" )
@template.content_tag("div",
@template.label(@object_name, method,
method.to_s.humanize, :class => ''align'' ) +
@template.radio_button( @object_name, method, true ) +
@template.label( @object_n...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...erators[matches[2]](nodeValue, matches[3]);
+ return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]);
}
},
@@ -3029,14 +3074,15 @@ Object.extend(Selector, {
// marks an array of nodes for counting
mark: function(nodes) {
+ var _true = Prototype.emptyFunction;
for (var i = 0, node; node = nodes[i]; i++)
- node._counted = true;
+ node._countedByPrototype = _true;
return nodes;
},
unmark: function(nodes) {
for (var i = 0, node; node = nodes[i]; i++)
- node._counted = undefined...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server