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

AbstractController::DoubleRenderError in Cfp::WelcomeController #677

Closed
elad-eyal opened this issue Dec 7, 2019 · 1 comment
Closed

Comments

@elad-eyal
Copy link
Collaborator

elad-eyal commented Dec 7, 2019

  1. rails db:setup
  2. create a conference with only acronym and title
  3. add a day
  4. Click Events -> Add Event. Supply a title and click "Create Event"
  5. "edit people" - add yourself as a submitter
  6. Click "Home"
  7. The action now (wronlgy?) contains a "Participate" button.
  8. Click "Participate", you get AbstractController::DoubleRenderError in Cfp::WelcomeController#show

Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".

elad-eyal added a commit to elad-eyal/frab that referenced this issue Dec 7, 2019
@elad-eyal
Copy link
Collaborator Author

In #678 I removed the participate button for this case.

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

1 participant