public-activity / public_activity

Easy activity tracking for models - similar to Github's Public Activity
MIT License
2.96k stars 334 forks source link

After setting up public_activity missing render #353

Closed JorgeDDW closed 2 years ago

JorgeDDW commented 4 years ago

Hey there! After trying to setup this gem I gent an issue with missing partial.

` ActionView::MissingTemplate in Clients#show Showing /Users/jorge/Projects/cliente/app/views/clients/show.html.erb where line #137 raised:

Missing partial public_activity/client/_create with {:locale=>[:en, :es], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in:

`

How can I solve this?

ur5us commented 2 years ago

@JorgeDDW This is an old issue. I assume you’ve either resolved the issue or moved on‽ In any case, each activity currently needs it own partial. The error message tells you what that partial should be: public_activity/client/_create.html.erb.

There’s an open issue about providing a generic partial: https://github.com/public-activity/public_activity/issues/124.