Created
October 8, 2012 13:37
-
-
Save alanowens/3852580 to your computer and use it in GitHub Desktop.
Delayed_paperclip error
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
NoMethodError in MediaController#index | |
undefined method `key?' for nil:NilClass | |
Rails.root: /Users/alanowens/Developer/thinkzoom | |
Application Trace | Framework Trace | Full Trace | |
actionpack (3.2.8) lib/action_controller/metal/hide_actions.rb:36:in `visible_action?' | |
actionpack (3.2.8) lib/action_controller/metal/hide_actions.rb:18:in `method_for_action' | |
actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:14:in `method_for_action' | |
actionpack (3.2.8) lib/action_controller/metal/compatibility.rb:61:in `method_for_action' | |
actionpack (3.2.8) lib/abstract_controller/base.rb:115:in `process' | |
actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process' | |
actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch' | |
actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' | |
actionpack (3.2.8) lib/action_controller/metal.rb:246:in `block in action' | |
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call' | |
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch' | |
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call' | |
journey (1.0.4) lib/journey/router.rb:68:in `block in call' | |
journey (1.0.4) lib/journey/router.rb:56:in `each' | |
journey (1.0.4) lib/journey/router.rb:56:in `call' | |
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call' | |
client_side_validations (3.1.5) lib/client_side_validations/middleware.rb:18:in `call' | |
warden (1.2.1) lib/warden/manager.rb:35:in `block in call' | |
warden (1.2.1) lib/warden/manager.rb:34:in `catch' | |
warden (1.2.1) lib/warden/manager.rb:34:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' | |
rack (1.4.1) lib/rack/etag.rb:23:in `call' | |
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call' | |
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context' | |
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call' | |
activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call' | |
activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' | |
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__324517686912786044__call__2615028748935757737__callbacks' | |
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' | |
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks' | |
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' | |
railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' | |
rack (1.4.1) lib/rack/runtime.rb:17:in `call' | |
activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
rack (1.4.1) lib/rack/lock.rb:15:in `call' | |
actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' | |
railties (3.2.8) lib/rails/engine.rb:479:in `call' | |
railties (3.2.8) lib/rails/application.rb:223:in `call' | |
rack (1.4.1) lib/rack/content_length.rb:14:in `call' | |
railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call' | |
thin (1.5.0) lib/thin/connection.rb:81:in `block in pre_process' | |
thin (1.5.0) lib/thin/connection.rb:79:in `catch' | |
thin (1.5.0) lib/thin/connection.rb:79:in `pre_process' | |
thin (1.5.0) lib/thin/connection.rb:54:in `process' | |
thin (1.5.0) lib/thin/connection.rb:39:in `receive_data' | |
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run_machine' | |
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run' | |
thin (1.5.0) lib/thin/backends/base.rb:63:in `start' | |
thin (1.5.0) lib/thin/server.rb:159:in `start' | |
rack (1.4.1) lib/rack/handler/thin.rb:13:in `run' | |
rack (1.4.1) lib/rack/server.rb:265:in `start' | |
railties (3.2.8) lib/rails/commands/server.rb:70:in `start' | |
railties (3.2.8) lib/rails/commands.rb:55:in `block in <top (required)>' | |
railties (3.2.8) lib/rails/commands.rb:50:in `tap' | |
railties (3.2.8) lib/rails/commands.rb:50:in `<top (required)>' | |
script/rails:6:in `require' | |
script/rails:6:in `<main>' | |
Request | |
Parameters: | |
None | |
Show session dump | |
_csrf_token: "yurv3SjglfRq8txN8/CPc2ke/RxGuoluiRxMzhWdDzc=" | |
session_id: "56cd798a89ea733ec06e831231049f94" | |
user_return_to: "/" | |
warden.user.user.key: ["User", [1], "$2a$10$JQdJwywReKmTlYCOvGlxVO"] | |
Show env dump | |
GATEWAY_INTERFACE: "CGI/1.2" | |
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | |
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3" | |
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch" | |
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8" | |
REMOTE_ADDR: "127.0.0.1" | |
SERVER_NAME: "poo.lvh.me" | |
SERVER_PROTOCOL: "HTTP/1.1" |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
#gem 'haml-rails' | |
gem 'sass' | |
gem 'thin' | |
gem 'devise' | |
gem 'cancan' | |
gem 'formtastic' | |
gem 'switch_user' | |
gem 'simple_form' | |
gem 'acts_as_tenant' | |
gem 'paperclip' | |
gem 'aws-sdk' | |
gem 'aws-s3', :require => 'aws/s3' | |
gem 'zencoder' | |
gem 'zencoder-fetcher' | |
gem 's3' | |
gem 'client_side_validations' | |
gem 'audited-activerecord', "~> 3.0" | |
gem 'json' | |
gem 'delayed_job_active_record' | |
gem 'delayed_paperclip' , '2.4.5.2' | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'bootstrap-sass-rails' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', :platforms => :ruby | |
gem 'uglifier', '>= 1.0.3' | |
#gem 'twitter-bootstrap-rails' | |
end | |
gem 'jquery-rails' | |
group :development do | |
gem 'hpricot' | |
gem 'ruby_parser' | |
end | |
# To use ActiveModel has_secure_password | |
# gem 'bcrypt-ruby', '~> 3.0.0' | |
# To use Jbuilder templates for JSON | |
# gem 'jbuilder' | |
# Use unicorn as the app server | |
# gem 'unicorn' | |
# Deploy with Capistrano | |
# gem 'capistrano' | |
# To use debugger | |
gem 'debugger' |
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
class Medium < ActiveRecord::Base | |
audited | |
self.table_name = 'media' | |
attr_accessible :desc, :type, :identifier, :our_content, :title, :user_id, :medium, :account_id | |
has_many :coursematerials | |
has_many :courses, :through => :coursematerials | |
process_in_background :medium | |
# Paperclip | |
# http://www.thoughtbot.com/projects/paperclip | |
has_attached_file :medium, | |
:storage => :s3, | |
:s3_credentials => "#{Rails.root}/config/s3-c.yml", | |
:path => ":subdomain/media/:uuid.:extension", | |
:bucket => 'client.thinkzoom.com' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment