# TODO: Defangle this (dep).
  # This is gross, but can't think of a classier way at the moment.
  def show_authentication_action_as_link
...

Ruby Links vs. Buttons: Can I ge...

by Danny Peck, February 11, 2011 20:34, 2 refactorings, tagged with ruby, helpers

I can't seem to figure out ...

8f5553306c2cf7f4b14153f6117f8e9b Talk
def user_photo(user, values = {})
    values[:style] ||= ''
    values[:class] ||= ''
...

Ruby User thumbnail helper needs...

by Danny Peck, September 28, 2010 16:53, 1 refactoring, tagged with ruby, helper

Bit of a Ruby noob. Could u...

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Button code creates a gener...

by Danny Peck, September 09, 2009 18:31

Thanks for the help. Good ...

8f5553306c2cf7f4b14153f6117f8e9b Talk
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...

by Danny Peck, September 09, 2009 15:08, 10 refactorings, tagged with ruby, helper, button

Probably a more efficient w...

8f5553306c2cf7f4b14153f6117f8e9b Talk
//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...

by Danny Peck, June 08, 2009 15:58, 2 refactorings, tagged with javascript, math, increment

Essentially there is a text...

8f5553306c2cf7f4b14153f6117f8e9b Talk

JavaScript On Highlight the table row on ...

by Danny Peck, May 26, 2009 19:59

Cool. thanks again. Yeah s...

8f5553306c2cf7f4b14153f6117f8e9b Talk
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...

8f5553306c2cf7f4b14153f6117f8e9b Talk
document.observe('dom:loaded', function() {
    var tObjs = document.getElementsByTagName('table');
    for (var x = 0; x < tObjs.length; x++) {
...

JavaScript Highlight the table row on ...

by Danny Peck, May 26, 2009 14:38, 7 refactorings, tagged with javascript, table, highlighting

A fairly common thing to do...

8f5553306c2cf7f4b14153f6117f8e9b Talk

JavaScript On Triggering event after paus...

by Danny Peck, May 11, 2009 14:54

thx for the article and oth...

8f5553306c2cf7f4b14153f6117f8e9b Talk
var killFlag=null;
function showMoveControls() {
     killFlag=null;
...

JavaScript Triggering event after paus...

by Danny Peck, April 30, 2009 16:10, 3 refactorings, tagged with delays, settimeout, pausing

Hello. I'd like to fire a j...

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Ruby IMG Snippet to content...

by Danny Peck, April 23, 2009 22:31

thank you for the help.

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Helper Method could be more...

by Danny Peck, April 23, 2009 22:29

Looks nice. BTW, the "all c...

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Helper Method could be more...

by Danny Peck, April 23, 2009 21:44

Thanks Josh. Looks nice.

8f5553306c2cf7f4b14153f6117f8e9b Talk
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.

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Double conditional and cont...

by Danny Peck, April 16, 2009 21:16

nice, thanks.

8f5553306c2cf7f4b14153f6117f8e9b Talk

Ruby On Ruby IMG Snippet to content...

by Danny Peck, April 16, 2009 20:33

@Tj Holowaychuk I don't hav...

8f5553306c2cf7f4b14153f6117f8e9b Talk
<%=
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...

8f5553306c2cf7f4b14153f6117f8e9b Talk
<% 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...

8f5553306c2cf7f4b14153f6117f8e9b Talk
<span <% if level < max_level && r != ''%>
         onmouseover="$('<%=row_id%>_plusminus').show();"
         onmouseout="$('<%=row_id%>_plusminus').hide();"
...

Ruby Ruby IMG Snippet to content...

by Danny Peck, April 16, 2009 19:19, 5 refactorings, tagged with rails, ruby, img, content_tag

Definitely new to Ruby and ...

8f5553306c2cf7f4b14153f6117f8e9b Talk