Skip to content

Instantly share code, notes, and snippets.

@mhhf
Created June 16, 2014 17:13
Show Gist options
  • Save mhhf/34f93abaa125420d86db to your computer and use it in GitHub Desktop.
Save mhhf/34f93abaa125420d86db to your computer and use it in GitHub Desktop.
Started GET "/promote/profile/edit/select_large" for 127.0.0.1 at 2014-06-16 19:12:20 +0200
Processing by MusiciansController#edit as JS
Parameters: {"widget"=>"select_large"}
DEPRECATION WARNING: ActiveRecord::Base#with_scope and #with_exclusive_scope are deprecated. Please use ActiveRecord::Relation#scoping instead. (You can use #merge to merge multiple scopes together.). (called from current_user_session at /Users/mhhf/Documents/Arbeit/groove/src/app/controllers/application_controller.rb:174)
User Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."type" IN ('User') AND "profiles"."id" = 3 LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."profile_id" = ? ORDER BY "photos"."id" ASC LIMIT 1 [["profile_id", 3]]
Rendered shared/select_large.html.erb within layouts/modal.html.erb (8.9ms)
Completed 500 Internal Server Error in 17ms
ActionView::Template::Error (undefined method `file' for nil:NilClass):
11: <%= image_tag @subject.image.url(:large), class: 'large-img' %>
12: </div>
13: <div class="preview large">
14: <%= image_tag @subject.photos.first.file.url(:original), class: 'preview-img' %>
15: </div>
16: </div>
17: <div class="pic pull-left">
app/views/shared/select_large.html.erb:14:in `_app_views_shared_select_large_html_erb___3210401202018851274_70347164113540'
app/controllers/musicians_controller.rb:258:in `block (2 levels) in edit'
app/controllers/musicians_controller.rb:253:in `edit'
Rendered /usr/local/Cellar/ruby/2.1.1_1/lib/ruby/gems/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
Rendered /usr/local/Cellar/ruby/2.1.1_1/lib/ruby/gems/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.1ms)
Rendered /usr/local/Cellar/ruby/2.1.1_1/lib/ruby/gems/2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (23.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment