google-labs-jules[bot] 8564ec7a7c Add comments to photos (#4130)
* Add comments to photos

Extend the photo show page to support comments by logged in users.

- Make the Comment model polymorphic.
- Update the Photo and Post models to have comments.
- Update the comments controller to handle the polymorphic association.
- Update the photo show page to display comments and a comment form.
- Create a reusable comments partial.

* Add migration

* Fix tests

* Fix tests

* Slightly fix tests

* Fix variables

* Add field

* Refactor slightly

* Refactor slightly

* Refactor slightly

* Refactor

* Photos respond to this as well

* Refactor to polymorphic_url

* Rename

* Wrong relationship

* Refactor and fix tests

* Fix relationships

* Fix rendering

* Fix tests

* Fix model tests

* Fix test

* Fix test

* Fix test

* Fix test

* Fix controller spec

* Fix view tests

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
2025-08-24 21:10:16 +09:30
2025-08-12 15:37:57 +00:00
2025-08-24 21:10:16 +09:30
2025-08-24 07:03:20 +00:00
2025-08-24 21:10:16 +09:30
2019-05-24 01:24:29 +00:00
2025-08-24 21:10:16 +09:30
2022-12-18 13:55:39 +10:30
2020-02-10 14:21:03 +13:00
2020-08-02 08:20:52 +12:00
2024-07-13 06:28:30 +00:00
2025-08-10 01:09:08 +00:00
2020-04-14 10:46:42 +12:00
2021-01-05 19:46:07 +13:00
2016-11-27 13:24:21 +13:00
2019-11-23 07:46:34 +13:00
2023-04-12 13:28:11 +01:00
2019-12-26 13:38:17 +13:00
2019-07-10 20:23:15 +00:00
2025-08-24 16:32:40 +09:30
2025-08-10 01:02:39 +00:00
2025-08-24 07:03:20 +00:00
2025-08-24 07:05:28 +00:00
2020-01-07 22:20:58 +13:00
2012-08-23 07:38:57 +01:00
2022-03-27 21:25:40 +10:30
2019-10-19 18:47:28 +13:00
2020-01-07 22:20:58 +13:00
2025-08-24 07:05:28 +00:00
2020-06-15 15:11:03 +12:00
2024-08-26 10:42:18 +00:00

🌱 Growstuff

Build status

Welcome to the Growstuff project.

You can find our app at https://www.growstuff.org

Growstuff is an open source/open data project for food gardeners. We crowdsource information on what our members are growing and harvesting, aggregate it, and make it available as open data via our API.

Growstuff was founded in 2012 and has been built by dozens of contributors. We are an inclusive, welcoming project, and encourage participation from people of all backgrounds and skill levels.

Want to contribute?

Don't ask to ask, the best way to get started is to fork the project, start a codespace and get hacking. Dive on in and submit your PRs.

  • Issues (features we're working on, known bugs, etc)
  • Gitter
  • Wiki (general documentation, etc.)

For coders

Growstuff is built in Ruby on Rails and also uses JavaScript for frontend features. We welcome contributions -- see CONTRIBUTING for details.

  • To set up your development environment, see Getting started.
  • You may also be interested in our API.

For designers, writers, researchers, data wranglers, and other contributors

There are heaps of ways to get involved and contribute no matter what your skills and interests.

You might like to check out:

Here on Github, you might find these useful:

Feel free to comment on any of the issues on Github.

Contact

For more information about this project, contact info@growstuff.org.

Security Issues: If you find an authorization bypass or data breach, please contact our maintainers directly at maintainers@growstuff.org.

Description
No description provided
Readme 52 MiB
Languages
Ruby 76.3%
Haml 19.5%
SCSS 1.3%
HTML 1%
JavaScript 0.9%
Other 1%