[openstreetmap/openstreetmap-website] Show diary entry after creation (PR #5484)
    Andy Allan 
    notifications at github.com
       
    Wed Jan  8 18:03:16 UTC 2025
    
    
  
@gravitystorm commented on this pull request.
> +    assert_redirected_to diary_entry_path(user, user.diary_entries.last)
     entry = DiaryEntry.last
Yes, I thought that too. I could refactor that as part of this PR, or separately. Which would you prefer? (and do you have any preferences for referring to the entry e.g. `user.diary_entries.last` or `DiaryEntry.last` or something else?)
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5484#discussion_r1907589026
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5484/review/2537837977 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250108/56be3070/attachment.htm>
    
    
More information about the rails-dev
mailing list