Created
October 6, 2014 01:00
-
-
Save Choongkyu/94f4a30a062c547bca51 to your computer and use it in GitHub Desktop.
rotten fruit
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 Fruits#new | |
Showing C:/Users/Guy/code/food/app/views/fruits/_form.html.erb where line #1 raised: | |
undefined method `fruits_path' for #<#<Class:0x46b9d20>:0x38c6df0> | |
Extracted source (around line #1): | |
1 | |
2 | |
3 | |
4 | |
<%= form_for(@fruit) do |f| %> | |
<% if @fruit.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@fruit.errors.count, "error") %> prohibited this fruit from being saved:</h2> | |
Trace of template inclusion: app/views/fruits/new.html.erb | |
Rails.root: C:/Users/Guy/code/food | |
Application Trace | Framework Trace | Full Trace | |
app/views/fruits/_form.html.erb:1:in `_app_views_fruits__form_html_erb___654145800_37415952' | |
app/views/fruits/new.html.erb:3:in `_app_views_fruits_new_html_erb___951021309_37231788' | |
Request | |
Parameters: | |
{"perishable_id"=>"2"} | |
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