Skip to content

Instantly share code, notes, and snippets.

@tommyp
Created March 23, 2011 00:38
Show Gist options
  • Save tommyp/882407 to your computer and use it in GitHub Desktop.
Save tommyp/882407 to your computer and use it in GitHub Desktop.
@words = []
@words = entry.title.scan(/\w+/)
@words.each do |word|
if word = ControlWord.exists?(word)
if ControlWord.new.positive?
debugger
update_attributes(:pos += 1)
else
update_attributes(:pos += 1)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment