This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log | grep -B2 "Sandra Weddig" | grep commit | cut -d" " -f2 | xargs git revert $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paule@phoet:~/Documents/ruby/faselcharts±master×$ bundle --version | |
Bundler version 1.1.pre.7 | |
paule@phoet:~/Documents/ruby/faselcharts±master×$ bundle install | |
Fetching dependency information from the API at http://rubygems.org/........ | |
Fetching dependency information from the API at http://rubygems.org/. | |
Using rake (0.9.2) | |
[...] | |
Installing activeadmin (0.2.2) | |
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Day job: Rails Freelancer in Hamburg Germany | |
Your Rails contributions (if any): Redis & File Caching Plugins, ActiveService Plugin | |
What's your Ruby/Rails experience?: Ruby since 2009, Rails since 2010 | |
How do you use GitHub?: GitHub for Mac, Browsing Code on Web, Selective Watching and Forking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem "rails", "3.1.0.rc5" | |
gem "activeadmin", "0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ABOUT: | |
small build monitor using MacRuby and Growl | |
RUN: | |
macruby tci.rb | |
CONFIG: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StrangeOperatorBehavior | |
def doit | |
some_array << [3,4] # ok | |
some_array += [6,7] # nil | |
end | |
def some_array | |
@some_array ||= [] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding utf-8 | |
module DSL | |
link_to "Articles", { :controller => "articles" }, :id => "news", :class => "article" | |
def doit_with(some, parameters) | |
# does it | |
end | |
def doit_with(mandatory, optional=nil, parameters=nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if development? | |
module ActionView | |
class Base | |
alias_method :rails_render, :render | |
# add debugging comments for partials to the rendered html | |
def render(options = {}, local_assigns = {}, &block) | |
output = rails_render(options, local_assigns, &block) | |
if options.respond_to?(:keys) && options[:partial] && (response.content_type.nil? || response.content_type =~ /html/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :gemcutter | |
gem "rails", "~> 3.0.3" | |
gem "rails_redis_cache", "~> 0.0.4" | |
gem "haml", "~> 3.0.25" | |
gem "hashie", "~> 1.0.0" | |
gem "asin", "~> 0.2.0" # hashie 1.0.0 | |
gem "twitter", "~> 1.1.1" # hashie 0.4.0 | |
gem "coderay", "~> 0.9.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add RailsAdmin to the Gemfile | |
# do NOT add devise | |
gem "rails_admin", :git => "git://github.com/sferik/rails_admin.git" | |
# run Bundler | |
bundle | |
# run the generator for RailsAdmin | |
# looks like it's broken, but it just does not install devise | |
# you may also remove the app/config/locales/devise.en.yml |