Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `attributes' for nil:NilClass #417

Open
lpirola opened this issue Jan 19, 2018 · 0 comments
Open

NoMethodError: undefined method `attributes' for nil:NilClass #417

lpirola opened this issue Jan 19, 2018 · 0 comments
Assignees

Comments

@lpirola
Copy link
Contributor

lpirola commented Jan 19, 2018

https://sentry.io/nossas-cidades/bonde-server/issues/436571061/

NoMethodError: undefined method `attributes' for nil:NilClass
  app/controllers/mobilizations/form_entries_controller.rb:57:in `block in to_csv'
    csv << fst.attributes.keys
  app/controllers/mobilizations/form_entries_controller.rb:56:in `to_csv'
    CSV.generate(headers: true) do |csv|
  app/controllers/mobilizations/form_entries_controller.rb:29:in `block (2 levels) in index'
    send_data to_csv(@form_entries), type: Mime::CSV, disposition: "attachment; filename=form_entries_#{DateTime.now.to_i}_#{parent.community.name.parameterize}_#{parent.id}.csv"
  app/controllers/mobilizations/form_entries_controller.rb:24:in `index'
    respond_with do |format|
...
(89 additional frame(s) were not displayed)

NoMethodError: undefined method `attributes' for nil:NilClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants