%w[ rubygems pp logger] .each do |gem| begin require gem rescue LoadError end end Pry.config.editor = "mate -w" # Default Command Set, add custom methods here: default_command_set = Pry::CommandSet.new do command "copy" , "Copy argument to the clip-board" do |str| IO.popen( 'pbcopy' ,...
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling Hirb::View.instance_eval do def enable_output_method @output_method = true @old_print = Pry.config.print Pry.config.print = proc do |output, value| Hirb::View.view_or_page_output( value) || @old_print.call(...
@products = Product . search ( :name_and_maker => "hoge" ) . result #=> SELECT `products`.* FROM `products` WHERE (`products`.`name` LIKE 'hoge%' AND `products`.`maker` LIKE 'hoge%') @products = Product . search ( :name_or_maker => "hoge" ) . result #=> SELECT `products`.* FROM `produ...
DocumentRoot /crownd/project/ruby/example.com/public RailsEnv development PassengerEnabled on RemoveHandler .cgi .php <Directory "/crownd/project/ruby/matome-ranking.com/public" > order deny,allow deny from all allow from localhost 127.0.0.1
== expected ○ actual == expected =~ /expression/ ○ actual =~ /expression/ be > expected ○ actual > expected be >= expected ○ actual >= expected be <= expected ○ actual <= expected be < expected ○ actual < expected be(expected) ○ actual.equal?(expected) be_a_kind_of(expected) ○ actual....
rails g bootstrap:layout application fluid rails g bootstrap:install rm -rf app/views/layouts/application.html.erb
Tumblr API | register an applicationのcallback URL
> == > Downloading http://redis.googlecode.com/files/redis-2.6.7.tar.gz > Already downloaded: /Library/Caches/Homebrew/redis-2.6.7.tar.gz > == > make -C /private/tmp/redis-KHTm/redis-2.6.7/src CC = cc > == > Caveats > You should reload redis: > launchctl unload ~/Library/LaunchAgents/...