-
Notifications
You must be signed in to change notification settings - Fork 69
Infer edit_path from Post type #411
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
Conversation
Deployed to https://staging.timeoverflow.org |
Tested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@enricostano I just leave a comment about a different (and probably simpler, since we don't need an extra helper method) way to infer the edit
path, but this also works for me 👍
@@ -1,4 +1,4 @@ | |||
<%= link_to post, class: "btn btn-warning" do %> | |||
<%= link_to get_edit_path(post), class: "btn btn-warning" do %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about this?
link_to [:edit, post]
5f3ecf5
to
1e68507
Compare
Tested again on staging 🍏 |
WAT
Fix #409
Test
That
Offer
andInquiry
can be modified again.