Created
October 6, 2014 02:43
-
-
Save Choongkyu/3aa07eb800409c3973f6 to your computer and use it in GitHub Desktop.
fruity 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 FruitsController#create | |
undefined method `fruit_url' for #<FruitsController:0x2d2c3e8> | |
Extracted source (around line #33): | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
respond_to do |format| | |
if @fruit.save | |
format.html { redirect_to @fruit, notice: 'Fruit was successfully created.' } | |
format.json { render :show, status: :created, location: @fruit } | |
else | |
format.html { render :new } | |
Rails.root: C:/Users/Guy/code/food | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/fruits_controller.rb:33:in `block (2 levels) in create' | |
app/controllers/fruits_controller.rb:31:in `create' | |
Request | |
Parameters: | |
{"utf8"=>"✓", | |
"authenticity_token"=>"Q23v7w6CYddGPTJkEpraAsqlwtKm0TTO+l73QA9OtE0=", | |
"fruit"=>{"name"=>"apple", | |
"color"=>"green", | |
"perishable_id"=>"5"}, | |
"commit"=>"Create Fruit", | |
"perishable_id"=>"5"} | |
Toggle session dump | |
Toggle env dump | |
Response | |
Headers: | |
None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment