rubyforgood / pet-rescue

Pet Rescue is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
61 stars 105 forks source link

Bug: fix path helper method name #700

Closed kasugaijin closed 4 months ago

kasugaijin commented 4 months ago

Currently in Organizations::Staff::PageTextsController in the update action, if @page_text does not update we redirect to edit_page_text_path, this causes an error, it needs to be edit_staff_page_text_path

image

To reproduce, upload two About Us images, and save. Then try to upload a third image and save. You will get an error. Expected behaviour, on attempt of uploading a third image you should get an alert message saying only 2 images allowed.

Hassaan68 commented 4 months ago

@kasugaijin , can you please assign this one to me?

jmilljr24 commented 4 months ago

@Hassaan68 all yours!

Hassaan68 commented 4 months ago

@jmilljr24 fixed and tested