Skip to content

Instantly share code, notes, and snippets.

@stain
Created June 25, 2014 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stain/b3c8ca07cf92ab3cac2c to your computer and use it in GitHub Desktop.
Save stain/b3c8ca07cf92ab3cac2c to your computer and use it in GitHub Desktop.
NoMethodError in Workflows#new
Showing /home/stain/src/seek/app/views/workflows/_form.html.erb where line #33 raised:
undefined method `find_by_name' for #<Class:0x00000008f6dcb0>
Extracted source (around line #33):
30: "It may not be appropriate for all workflows to be ran in this manner, for example certain workflows with interactions.") -%>
31: Allow data sweeps?
32: <%= f.check_box(:sweepable, :style => "vertical-align: middle") -%>
33: </label>
34: </p>
35:
36: <% unless @workflow.new_record? %>
Trace of template inclusion: app/views/workflows/new.html.erb
Rails.root: /home/stain/src/seek
Application Trace | Framework Trace | Full Trace
app/models/person.rb:84:in `guest_project_member?'
app/models/user.rb:231:in `guest_project_member?'
app/views/workflows/_form.html.erb:33:in `block in _app_views_workflows__form_html_erb__3894538340037141564_71441240'
app/views/workflows/_form.html.erb:1:in `_app_views_workflows__form_html_erb__3894538340037141564_71441240'
lib/seek/seek_render_override.rb:29:in `render'
app/views/workflows/new.html.erb:6:in `_app_views_workflows_new_html_erb__3847788695160768670_147809340'
lib/seek/seek_render_override.rb:31:in `render'
app/controllers/workflows_controller.rb:47:in `new'
app/controllers/application_controller.rb:37:in `block in with_current_user'
app/models/user.rb:216:in `with_current_user'
app/controllers/application_controller.rb:36:in `with_current_user'
Request
Parameters:
None
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment