Skip to content

Instantly share code, notes, and snippets.

@marciok
Created January 15, 2013 20:39
Show Gist options
  • Save marciok/4541817 to your computer and use it in GitHub Desktop.
Save marciok/4541817 to your computer and use it in GitHub Desktop.
ActionView::Template::Error (super: no superclass method `prize' for #<Battle:0x000000046a3908>):
1: <%= ActiveSupport::JSON.encode({
2: prize: {
3: coins: @battle.prize
4: }
5: }).html_safe %>
app/views/v1/battles/prize.json.erb:3:in `_app_views_v__battles_prize_json_erb__2855760873617265786_35928320'
app/controllers/v1/battles_controller.rb:58:in `prize'
app/controllers/v1_controller.rb:11:in `block (2 levels) in respond_json'
app/controllers/v1_controller.rb:9:in `respond_json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment