Last active
December 15, 2015 23:49
-
-
Save jdickey/5343105 to your computer and use it in GitHub Desktop.
New contribution form with a problem: `binding.pry` at line 13 fires and all paths are OK; line 14 never executes. Error reported is Failure/Error: render ActionView::Template::Error: No route matches {:controller=>"contributions", :action=>"new"}
and points to the start of the `simple_form_for` block. Ideas?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h1 New contribution | |
= simple_form_for(new_article_contribution_path(@contribution.article)) do |f| | |
= f.error_notification | |
.form-inputs | |
.form-actions | |
= f.button :submit | |
- it_matches = new_article_contribution_path(@contribution.article) == "/articles/1/contributions/new" | |
- it_matches2 = article_contributions_path(@contribution.article) == '/articles/1/contributions' | |
- binding.pry | |
- binding.pry | |
= link_to 'Back', article_contributions_path(@contribution.article) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment