Public Gists by clemens

Gravatar
Wed Oct 28 14:34:23 -0700 2009
1
2
3
# no need to override human_attribute_name to customize error messages ...
# http://wgibbs.github.com/2009/10/27/human-attribute-name.html
en:
Gravatar
Mon Oct 26 10:48:43 -0700 2009
1
2
3
# Domtastic Cucumber
#
# domesticate your Cucumber
Gravatar
Tue Oct 13 01:10:11 -0700 2009
1
2
3
Object.class_eval do
  def fucking
    self
Gravatar
Fri Aug 28 05:04:43 -0700 2009
1
2
3
# Ruby on Rails Developer, Berlin/Potsdam
describe "Job: Ruby on Rails Developer(m/f)" do
  before do
Gravatar
Mon Jun 22 10:17:51 -0700 2009
1
2
3
local:~/ clemens$ sudo jgem install rspec --no-ri --no-rdoc
/opt/local/jruby/bin/jgem: line 8: require: command not found
/opt/local/jruby/bin/jgem: line 9: require: command not found
Gravatar
Fri Jun 19 04:34:57 -0700 2009
1
2
3
require 'rubygems'
require 'activesupport'
 
Gravatar
Sun May 03 05:41:35 -0700 2009
1
2
3
class ArticleFormBuilder < ExtensibleFormBuilder
  after(:article, :author_id) do |f|
    f.field_set do
Gravatar
Thu Apr 30 07:48:28 -0700 2009
1
2
3
def calendar_proc
  lambda do |day|
    content = returning '' do |content|
Gravatar
Thu Apr 23 10:16:55 -0700 2009
1
2
3
# highly experimental Capistrano recipe for adva-cms-based apps
# UNTESTED
 
Gravatar
Mon Apr 13 04:40:19 -0700 2009
1
2
3
# UNTESTED!
# spec
it_should_require_admin_for_actions :new => :get, :create => :post, :edit => :get, :update => :put, :destroy => :delete
Gravatar
Mon Apr 06 06:32:17 -0700 2009
1
2
3
{
  :en => {
    :salutation => {
Gravatar
Mon Mar 16 03:49:35 -0700 2009
1
2
3
SELECT * FROM locations
WHERE (
  SELECT COUNT(*) FROM taggings
Gravatar
Wed Feb 11 01:12:27 -0800 2009
1
2
3
clemens-koflers-computer:url_history clemens$ rg test/all.rb
Loaded suite test/all
Started
Gravatar
Tue Feb 10 12:21:24 -0800 2009
1
2
3
Processing UsersController#update (for 127.0.0.1 at 2009-02-10 20:50:19) [PUT]
  Parameters: {"user"=>{"profile_attributes"=>{"dog_color"=>"gold", "race_id"=>"1", "dog_preferences"=>"nix", "dog_age"=>"4", "dog_name"=>"Coba", "picture"=>#<File:/tmp/CGI.9218.9>, "dog_gender"=>"f"}}, "step"=>"1", "commit"=>"Speichern!", "action"=>"update", "_method"=>"put", "authenticity_token"=>"ffb9373e16afccea668e046c96acd7f8c2b1e1bc", "controller"=>"users", "locale"=>"de"}
  Site Load (0.7ms) SELECT * FROM "sites" WHERE ("sites"."host" = 'hunde-date.local') LIMIT 1
Gravatar
Tue Feb 10 10:21:51 -0800 2009
1
2
3
applyOrRemoveFCKeditors = function() {
  filter = $$('select.columnsFilter').first();
 
Gravatar
Tue Feb 10 00:50:52 -0800 2009
1
2
3
  def has_authorized_tag(*args)
    # @response.body.should have_authorized_tag(*args)
    has_tag "span[class^=newsletter_stats]" do
Gravatar
Thu Jan 29 00:53:39 -0800 2009
1
2
3
class SectionsCell < BaseCell
  tracks_cache_references :recent_articles, :track => ['@section', '@articles']
 
Gravatar
Sat Sep 13 09:24:33 -0700 2008
1
2
3
Processing ApplicationController#index (for 127.0.0.1 at 2008-09-13 18:23:53) [GET]
  Session ID: BAh7CDoKbW9udGhpDjoJeWVhcmkC2AciCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=--0b0ba3c6eee1b81e8ed36c05e8beac6153ec9c3c
  Parameters: {}
Gravatar
Sat Sep 06 12:42:38 -0700 2008
1
2
3
Who's up to a post-railsconfeu08-coolest-quotes-tshirt-site?
 
Rails doesn't scale! (Oscar Wilde)
Gravatar
Sat Sep 06 12:39:59 -0700 2008
1
2
3
Who's up to a post-railsconfeu08-coolest-quotes-tshirt-site?
 
Rails doesn't scale! (Oscar Wilde)