###undefined local variable or method ABC
###undefined method XYZ for Nil:NilClass
###undefined local variable or method ABC
###undefined method XYZ for Nil:NilClass
These steps are for Mavericks. Mileage will vary for older versions of Mac OS X but the broad strokes still apply. Google is your friend if you hit a snag. Comments welcome.
Install homebrew.
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
{"new":[{"_id":"53aa49bfb05f9d0e45001879","id":"2014/06/25/120-sports-espn-cord-cutters","title":"120 Sports Wants to Be ESPN for Cord Cutters","title_tag":null,"author":"Jason Abbruzzese","post_date":"2014-06-25T00:01:55-04:00","post_date_rfc":"Wed, 25 Jun 2014 00:01:55 -0400","sort_key":"1wZEpd","link":"http://mashable.com/2014/06/25/120-sports-espn-cord-cutters/","content":{"plain":"Two of the largest U.S. professional sports leagues have entered into a joint venture to launch a new video startup tailored to mobile fans and cord cutters that miss being able to tune in to ESPN.\n\n120 Sports launched on Wednesday with equity stakes from Major League Baseball and the National Hockey League, as well as Time Inc., college-sports syndicator Campus Insiders and digital-sports media company Silver Chalice. The operation is already sizable with more than 130 staff based out of Chicago. \n\nSee also: 20 Funniest YouTube Videos According to Reddit\n\nThe startup features video on demand of sports highlights from pro |
Want to know the future location of a file upload? Want fast responses by moving file uploads into a background task with something like Sidekiq? Building an API and you want to immediately tell the client where the upload is going to be before actually uploading the file? Then try the tweaks below. This is definitely a monkey patch - mileage may vary.
class PhotoUploader < CarrierWave::Uploader::Base
# Note:You've got to be using this option for the magic to work. It's
# used by default, though, so you should be fine unless you commented
# it out.
#
def store_dir
This is a simple tutorial for setting up AWS SNS with Rails 4. A few details on the implementation:
{"meta":{"code":200},"response":{"fallbackCategory":{"target":{"type":"path","url":"\/venue\/explore","params":{"query":"wifi","sw":"34.056183,-118.284454","ne":"34.100310,-118.232118"}},"refinements":[{"query":"coffee shop"}]},"suggestedFilters":{"header":"Tap to show:","filters":[{"name":"Open now","key":"openNow"},{"name":"$-$$$$","key":"price"}]},"geocode":{"what":"","where":"90026","center":{"lat":34.0766,"lng":-118.2646},"displayString":"90026, CA, United States","cc":"US","geometry":{"bounds":{"ne":{"lat":34.10031,"lng":-118.232118},"sw":{"lat":34.056183,"lng":-118.284454}}},"longId":"162411061580814818"},"headerLocation":"Current map view","headerFullLocation":"Current map view","headerLocationGranularity":"unknown","query":"wifi","totalResults":183,"suggestedBounds":{"ne":{"lat":34.109234265675475,"lng":-118.22999124722052},"sw":{"lat":34.04305066953355,"lng":-118.29043410836876}},"groups":[{"type":"Recommended Places","name":"recommended","items":[{"reasons":{"count":0,"items":[{"summary":"This spot |
# config/routes.rb | |
GifVault::Application.routes.draw do | |
# This route sends requests to our naked url to the *cool* action in the *gif* controller. | |
root to: 'gif#cool' | |
# I've created a gif controller so I have a page I can secure later. | |
# This is optional (as is the root to: above). | |
get '/cool' => 'gif#cool' |
# app/controllers/users_controller.rb | |
class UsersController < ApplicationController | |
def new | |
end | |
def create | |
end |