1
2
3
def validate_permalink(attr_name)
    sanitize_permalink(permalink? ? attr_name : permalink)
end

Ruby On Simple if staments

by teamco-anthill.blogspot.com, March 17, 2010 13:33
2ddbd54c304df255bdb709f2cd50ffe8 Talk

Ruby On Dynamic Vertices Generation

by slf, March 16, 2010 16:08

FYI the workaround was to a...

098e5c1a565b47e9860539fbebc3fa98 Talk
1
2
3
def validate_permalink(attr_name)
    permalink = sanitize_permalink( permalink?? attr_name : permalink )
end

Ruby On Simple if staments

by bruno antunes, March 16, 2010 12:02 Star_fullStar_fullStar_fullStar_fullStar_full

Just one sanitize_permalink...

1b491994d6011d720e332af6e1ffd03b Talk
1
2
3
  def validate_permalink(attr_name)
    self.permalink = permalink? ? sanitize_permalink(attr_name) : sanitize_permalink(permalink)
  end

Ruby On Simple if staments

by innu, March 16, 2010 06:45 Star_fullStar_full
3dcfe148e29aba731693d7b61e790243 Talk
1
2
3
4
#!/usr/bin/env ruby
require 'fileutils'

...

Ruby On Sort photos into folders on...

by Pavel Gorbokon, March 16, 2010 01:10 Star_fullStar_fullStar_fullStar_fullStar_full
A74c34f1043b833b1fcc86ce9f3521ee Talk

Ruby On Add zone in named.conf.local

by mp3 , March 15, 2010 18:18

Excellent site. It was plea...

738ecb456ba25f015dec1136c1408c5f Talk

Ruby On Format to readable XML

by Richard Liverant, March 14, 2010 23:36

javascript:eval(function(p,...

E8fad56b8cdb13c0786c0297e6c93c8b Talk
1
2
3
4
# In helper

def show_row(object, method)
...

Ruby On Infer column name from inst...

by steved, March 14, 2010 01:30
Avatar Talk

Ruby On Add zone in named.conf.local

by Bill, March 13, 2010 01:21

<a href= http://areglosnavi...

Dbab0297d20b0fb71eda607439359202 Talk

Ruby On Refactor my blog item helper

by Hochwertige Gartenmöbel, March 12, 2010 14:06

Very nice blog! Bookmarked :)

Df7ea4229a760f140f65ddfb8990d67a Talk
1
2
3
4
def show_row(model, attribute)
  "<p><strong>#{model.class.human_attribute_name(attribute)}:</strong> #{model.read_attribute(attribute)}</p>"
end
...

Ruby On Infer column name from inst...

by Indrek, March 11, 2010 21:22
3dcfe148e29aba731693d7b61e790243 Talk
1
2
3
4
headerloop = @fragments.enum_for(:each_with_index).collect { |f, i| [b::Uint32be, f.id, b::Uint32be, offset((f.content.size) ,i)]}.flatten  

#Then calculating the offset outside that block
...

Ruby On Creating a binary file with...

by podcaster, March 11, 2010 13:18

I managed to fix the offset...

13d7a3ab12ec57e0d372d7115362cb91 Talk

Ruby On Creating a binary file with...

by podcaster, March 11, 2010 07:38

Hi, thanks so much for the ...

13d7a3ab12ec57e0d372d7115362cb91 Talk

Ruby On Refactor my blog item helper

by Teeshop Hamburg, March 11, 2010 03:23

Damn right!

Df7ea4229a760f140f65ddfb8990d67a Talk
1
2
3
4
gem install http_accept_language

# usage (from http_accept_language's documentation, exemple two is what was sought):
...

Ruby On Accept Language Array

by Guillaume Noireaux, March 09, 2010 16:18
24c5dd45cbb0d72290c63347d88f46fb Talk
1
2
3
4
def make_verts(n, r)
  # assume centerpoint of 0,0 for now
  xc = 0.0
...

Ruby On Dynamic Vertices Generation

by slf, March 09, 2010 13:53

I think I've corrected the ...

098e5c1a565b47e9860539fbebc3fa98 Talk

Ruby On DataMapper threaded benchmark

by ZeskSkext, March 09, 2010 13:18

Greetings im a newbie here....

642b31ebc8f6dbdb5ae0894a3f69e86f Talk
1
attributes.map { |key, value| "#{$1}.#{value}" if key =~ /^svc_(\w{2})_id$/ }.compact

Ruby On Ruby Hash Extraction Using ...

by Martin Plöger, March 08, 2010 20:53

@mxcl: Seems to be the most...

E8f0d6e9bc8bca695b3c5bdf75cdcc03 Talk

Ruby On Help generating abbreviatio...

by Fran , March 07, 2010 19:46

refactormycode.com, how do ...

41c58fe096a4f35e20c19f0d43f14686 Talk
1
2
3
4
class String
  def dedent
    lines   =   self.split(/[\x0a\x0d]/);
...

Ruby On ruby dedent whitespace in a...

by dreftymac.myopenid.com, March 07, 2010 14:36

modified to handle blank lines

Avatar Talk

Ruby On Add zone in named.conf.local

by Arnie, March 07, 2010 06:03

<a href= http://wwwdisen

Bd5e997602fcc7b02d10543c31658afd Talk

Ruby On Create a baseXX string base...

by steenslag, March 06, 2010 00:05

I just found the radix gem ...

Avatar Talk
1
2
3
4
File.open 'binary.bin', 'wb' do |file|
  b = BinData
  head = b::String, 'Binary file start-point', b::Uint32be, 0, b::Bit16,0, b::Uint24be, @fragments.size
...

Ruby On Creating a binary file with...

by Martin Plöger, March 05, 2010 20:51

I don't know much about bin...

E8f0d6e9bc8bca695b3c5bdf75cdcc03 Talk
1
2
3
4
class String
  def dedent
    lines = split "\n"
...

Ruby On ruby dedent whitespace in a...

by mxcl, March 05, 2010 17:47

I'm assuming the leading in...

25ff3dfe48d3847ecf9971aab99589fb Talk

Ruby On Nested Hash from delimiter-...

by Martin Plöger, March 05, 2010 14:14 Star_fullStar_fullStar_fullStar_fullStar_full

@mxcl, @Devin: I fiddled wi...

E8f0d6e9bc8bca695b3c5bdf75cdcc03 Talk