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

Link results to custom controller #52

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

sauloperez
Copy link
Collaborator

@sauloperez sauloperez commented Oct 14, 2020

Without this, decidim-consultations's ConsultationsController gets called and so @questions is not defined which causes our results.html.erb view to fail with a

ActionView::Template::Error Decidim::Consultations::Admin::ConsultationsController#results undefined method 'each' for nil:NilClass

@sauloperez sauloperez self-assigned this Oct 14, 2020
There is no need to provide multiple languages for these tests to work
so we better stick to shorter definitions, which is a bit more readable.
Without this, `decidim-consultations`'s `ConsultationsController` gets
called and so `@questions` is not defined which causes our
`results.html.erb` view to fail with a `ActionView::Template::Error
Decidim::Consultations::Admin::ConsultationsController#results undefined
method `each' for nil:NilClass`.
@sauloperez sauloperez force-pushed the link-results-to-custom-controller branch from fc35c3a to cf22080 Compare October 14, 2020 08:59
@sauloperez sauloperez merged commit bcf9eb5 into master Oct 14, 2020
@sauloperez sauloperez deleted the link-results-to-custom-controller branch October 14, 2020 09:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant