Skip to content

Instantly share code, notes, and snippets.

@rafmagana
Created May 1, 2012 17:38
Show Gist options
  • Save rafmagana/2569920 to your computer and use it in GitHub Desktop.
Save rafmagana/2569920 to your computer and use it in GitHub Desktop.
Reviews error
127.0.0.1 GET /dc/restaurants/cuba-libre-dc/reviews 500 Internal Server Error ReviewsController#index 104.6 (DB 0.0, View 0.0) {"metro_id"=>"dc", "restaurant_id"=>"cuba-libre-dc"} {}
ActiveRecord::RecordNotFound (Couldn't find ReservationSource with id=api):
app/models/reservation_source.rb:23:in `api'
app/models/reservation.rb:46:in `block in <class:Reservation>'
app/models/user.rb:294:in `can_review_restaurant?'
app/models/user.rb:286:in `can_and_has_reviewed_restaurant?'
app/helpers/review_helper.rb:4:in `review_message'
app/views/reviews/_reviews.html.haml:1:in `_app_views_reviews__reviews_html_haml___1025243544_177588620'
app/controllers/reviews_controller.rb:23:in `block (2 levels) in index'
app/controllers/reviews_controller.rb:18:in `index'
config/initializers/log_formatter.rb:22:in `block (2 levels) in <top (required)>'
config/initializers/log_formatter.rb:21:in `block in <top (required)>'
config/initializers/quiet_assets.rb:8:in `call_with_quiet_assets'
Rendered /home.rvm/gems/ruby-1.9.3-p125@cityeats/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (8.4ms)
Rendered /home.rvm/gems/ruby-1.9.3-p125@cityeats/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
Rendered /home.rvm/gems/ruby-1.9.3-p125@cityeats/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (32.2ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment