1 2 3 4
def validate_permalink(attr_name) if permalink? permalink = sanitize_permalink(attr_name) ...
Ruby Simple if staments
1 2 3 4
<?php function get_handle($type) { ...
PHP Return the appropriate file...
This method feels like it's...
1 2 3 4
stuff.each do |name| name = name.downcase #size ...
Ruby ungliness and long too
by uberholden.myopenid.com,
September 10, 2009 13:15,
6 refactorings, tagged with case, ruby, if else, if, rails
any ideas on making this mo...
1 2 3 4
def show if params[:course_id] && permitted_to?(:browse, :videos) ...
Ruby Need to DRY this if-else up
by fnjord.myopenid.com,
March 25, 2009 17:43,
3 refactorings, tagged with ruby, rails, if else, dry, conditions
I thought of creating a bef...
easy one?