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 `join' for nil:NilClass #475

Open
lpirola opened this issue Jun 18, 2018 · 0 comments
Open

NoMethodError: undefined method `join' for nil:NilClass #475

lpirola opened this issue Jun 18, 2018 · 0 comments
Assignees

Comments

@lpirola
Copy link
Contributor

lpirola commented Jun 18, 2018

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

NoMethodError: undefined method `join' for nil:NilClass
Did you mean?  JSON
  app/models/form_entry.rb:44:in `last_name'
    (complete.split(' ')[1..-1]).join(' ') if complete
  app/models/form_entry.rb:51:in `complete_name'
    "#{(first_name || '').strip} #{last_name || ''}".strip
  app/controllers/mobilizations/form_entries_controller.rb:38:in `create'
    (render json: @form_entry.errors, status: 400 and return) unless @form_entry.validate
...
(100 additional frame(s) were not displayed)

NoMethodError: undefined method `join' for nil:NilClass
Did you mean?  JSON
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