# TODO: Defangle this (dep). # This is gross, but can't think of a classier way at the moment. def show_authentication_action_as_link ...
def user_photo(user, values = {})
values[:style] ||= ''
values[:class] ||= ''
...
Ruby User thumbnail helper needs...
Bit of a Ruby noob. Could u...
Ruby On Button code creates a gener...
by Danny Peck,
September 09, 2009 18:31
Thanks for the help. Good ...
def button(title, values) # title: Accepts a string that will appear on the button # values: accepts the possible optional parameters. ...
Ruby Button code creates a gener...
Probably a more efficient w...
//e is the object, and 'op' is a parameter passed that tells us
//if we're increasing or decreasing the value.
function step_change(e, op) {
...
JavaScript An incrementor function tha...
Essentially there is a text...
JavaScript On Highlight the table row on ...
by Danny Peck,
May 26, 2009 19:59
Cool. thanks again. Yeah s...
document.observe('dom:loaded', function() {
$$('table.highlight tr').each(function(element) {
element.onmouseover = element.addClassName.curry('on');
...
JavaScript On Highlight the table row on ...
by Danny Peck,
May 26, 2009 15:37
Ah nice Adam. Thanks. Curio...
document.observe('dom:loaded', function() {
var tObjs = document.getElementsByTagName('table');
for (var x = 0; x < tObjs.length; x++) {
...
JavaScript Highlight the table row on ...
A fairly common thing to do...
JavaScript On Triggering event after paus...
by Danny Peck,
May 11, 2009 14:54
thx for the article and oth...
var killFlag=null;
function showMoveControls() {
killFlag=null;
...
JavaScript Triggering event after paus...
Hello. I'd like to fire a j...
Ruby On Helper Method could be more...
by Danny Peck,
April 23, 2009 22:29
Looks nice. BTW, the "all c...
def build_criteria(data_cols, i)
filterHTML = ''
typeObjects = ''
...
Ruby Helper Method could be more...
by Danny Peck,
April 23, 2009 20:53,
5 refactorings, tagged with ruby, html, content_tag, select_tag
Any help is appreciated.
Ruby On Ruby IMG Snippet to content...
by Danny Peck,
April 16, 2009 20:33
@Tj Holowaychuk I don't hav...
<%= span_on_mouseover = "" span_on_mouseout = "" ...
Ruby On Ruby IMG Snippet to content...
by Danny Peck,
April 16, 2009 20:09
this is better. could proba...
<% if level != max_level && level > 1 %> <td colspan="<%=max_level-level%>" class="grouptd last"></td> <% end %>
Ruby Double conditional and cont...
by Danny Peck,
April 16, 2009 19:23,
5 refactorings, tagged with rails, ruby, content_tag, conditional
Curious of the right way to...
<span <% if level < max_level && r != ''%>
onmouseover="$('<%=row_id%>_plusminus').show();"
onmouseout="$('<%=row_id%>_plusminus').hide();"
...
Ruby Ruby IMG Snippet to content...
Definitely new to Ruby and ...
I can't seem to figure out ...