Skip to content

Instantly share code, notes, and snippets.

View technogoat's full-sized avatar

Naum Kostovski technogoat

View GitHub Profile
validates_attachment_presence :logo
validates_presence_of :logo
validates_attachment_content_type :logo, :content_type => ['image/jpeg', 'image/png', 'image/gif', "image/pjpeg"]
validates_attachment_content_type :logo, :content_type => ['image/jpeg', 'image/png', 'image/gif']
glenn-roberts-4 ~/code/google_analytics[json_fix]$ gh pull al2o3cr
*** Warning: There was a problem accessing the network.
/opt/local/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
from /opt/local/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in `new'
from /opt/local/lib/ruby/gems/1.8/gems/json_pure-1.4.3/lib/json/common.rb:146:in `parse'
from /opt/local/lib/ruby/gems/1.8/gems/github-0.4.3/lib/commands/helpers.rb:402:in `get_cache'
from /opt/local/lib/ruby/gems/1.8/gems/github-0.4.3/lib/commands/helpers.rb:339:in `get_network_data'
from /opt/local/lib/ruby/gems/1.8/gems/github-0.4.3/lib/commands/helpers.rb:326:in `network_members'
from /opt/local/lib/ruby/gems/1.8/gems/github-0.4.3/lib/commands/commands.rb:111:in `command'
from /opt/local/lib/ruby/gems/1.8/gems/github-0.4.3/bin/../lib/github/command.rb:25:in `send'
authorize_resource :class => FundingFlow
alias gpow='git push origin working'
alias gpsm='git push heroku_staging staging:master'
alias gppm='git push heroku_production'
alias hmig='heroku rake db:migrate'
$ heroku pg:reset SHARED_DATABASE --app
$ heroku maintenance:on --app
$ git push origin :refs/tags/0.9.6c