[openstreetmap/openstreetmap-website] Show diary entry after creation (PR #5484)

Anton Khorev notifications at github.com
Wed Jan 8 16:59:42 UTC 2025


@AntonKhorev commented on this pull request.



> +    assert_redirected_to diary_entry_path(user, user.diary_entries.last)
     entry = DiaryEntry.last

It's a bit odd that the same diary entry has two different references next to each other: `user.diary_entries.last` and `DiaryEntry.last`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5484#pullrequestreview-2537702500
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5484/review/2537702500 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250108/46dd156c/attachment.htm>


More information about the rails-dev mailing list