default, only non-js/css files under app/assets/ are included. • To include fonts under vendor/assets/fonts/: # config/environments/production.rb config.assets.precompile << lambda do |filename, path| path =~ /vendor\/assets/ && !%w(.js .css).include?(File.extname(filename)) end
by Ruby core classes when expect to get a String. Explicit conversion e.g. #to_s • called by you to explicitly convert from a different type to String. Read more in “Confident Ruby” by Avdi Grimm http://www.confidentruby.com/
faster than ack, better than grep • search in current dir and sub dirs • for literal text (-Q) .empty? • limit to filenames (-G) ends with .haml Read more in “Conquering the Command Line” by Mark Bates http://conqueringthecommandline.com/