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
Finished in 0.05004 seconds | |
3 examples, 1 failure | |
1) PagesController GET 'about' should be successful | |
Failure/Error: get 'about' | |
No route matches {:controller=>"pages", :action=>"about"} | |
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:407:in `generate' | |
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:450:in `generate' | |
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:446:in `generate_extras' | |
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:442:in `extra_keys' |
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
require 'spec_helper' | |
describe PagesController do | |
render_views | |
describe "GET 'home'" do | |
it "should be successful" do | |
get 'home' | |
response.should be_success | |
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
SampleApp::Application.routes.draw do |map| | |
match "/home" => "pages#home" | |
match "/contact" => "pages#contact" | |
match "/about" => "pages#about" | |
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
require 'rubygems' | |
begin | |
gem 'i18n', "~> 0.4.0" | |
rescue LoadError | |
# no biggie, optional anyway | |
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
~/Documents/speakerwiki[taylor]$ rake ts:config | |
(in /Users/taylorbrooks/Documents/speakerwiki) | |
Sphinx cannot be found on your system. You may need to configure the following | |
settings in your config/sphinx.yml file: | |
* bin_path | |
* searchd_binary_name | |
* indexer_binary_name | |
For more information, read the documentation: |
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
alias rs="rails s" | |
alias rc="rails c" | |
alias gco="git checkout" | |
alias gpl="git pull" | |
alias gps="git push" | |
alias gcm="git commit -a -m" | |
alias cdup="cd ~/Documents/Upstream" | |
alias cdra="cd ~/Documents/Rails" | |
alias cdpow="cd ~/.pow" | |
alias start_redis="cd /usr/local/Cellar/redis/2.2.12/bin && ./redis-server" |
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
require 'rubygems' | |
require 'csv' | |
require 'json' | |
require 'net/http' | |
def scrape(username, tag) | |
url = "http://www.delicious.com/v2/json/#{username}/#{tag}?count=1000" | |
resp = Net::HTTP.get_response(URI.parse(url)) | |
data = resp.body |
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
# app/helpers/application_helper.rb | |
def twitterized_type(type) | |
case type | |
when :alert | |
"alert-block" | |
when :error | |
"alert-error" | |
when :notice | |
"alert-info" | |
when :success |
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
# Finds CSV file | |
csv = File.open('lib/contacts.csv') | |
# Opens CSV to read rows | |
CSV.read(csv, headers: true).each do |row| | |
# Finds the churches that haven't been contacted | |
if row[4] != 'x' | |
puts "#{row.inspect}" | |
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
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
AssetSync: using /Users/taylorbrooks/Documents/Rails/subscriptions/config/initializers/asset_sync.rb | |
rake aborted! | |
Invalid CSS after "a ": expected ")", was "[class^="icon-"..." | |
(in /Users/taylorbrooks/Documents/Rails/subscriptions/app/assets/stylesheets/application.css) | |
Tasks: TOP => assets:precompile:primary | |
(See full trace by running task with --trace) | |
rake aborted! | |
Command failed with status (1): [/Users/taylorbrooks/.rbenv/versions/1.9.3-...] |
OlderNewer