Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8799839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:25:48+00:00 2026-06-14T00:25:48+00:00

when destroying one element from my database, the index view <% for activity in

  • 0

when destroying one element from my database, the index view

      <% for activity in @activities %>

      <%= activity.text %>  by  <%= current_user.name %> on <%= Time.current%> <br/>


    <% end %>

no longer find the <%=trackable.element_name%> from config/pba.yml

    activity:
        element:
              create: '  <%=trackable.element_name%> has been created '
              update: '  <%=trackable.element_name%> has been edited '
             destroy: '  <%=trackable.element_name%> has been removed '

and display something like:

    element1 has been edited by me on 2012-08-19 16:20:44 UTC
  Template not defined by me on 2012-08-19 16:20:44 UTC 

“template not defined” being the element i have just deleted….

i would like to store the element name and the action that has been taken though…!?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:25:49+00:00Added an answer on June 14, 2026 at 12:25 am

    I released a new version of the public_activity gem which allows you to create views for every activity you display, so you can simply check if trackable is still in the database and act accordingly.

    Upgrade your gem to https://github.com/pokonski/public_activity#upgrading-to-04 and check out my example application which does exactly that:

    https://github.com/pokonski/activity_blog/blob/master/app/views/public_activity/post/_update.slim#L4

    where link_to_trackable is just a helper checking if trackable exists: https://github.com/pokonski/activity_blog/blob/master/app/helpers/application_helper.rb#L34

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the* Topics * controller and in the view/topics/index.html.erb the link for destroying
I want destroy all sessions at one time. I have tried Session.Abondon() method but
How can I drop all tables in my database ? 1) In one MYSQL
We have security in our firewall to prevent SQL-Injection from destroying any of our
I am having a problem sometimes with a deadlock when destroying some threads. I've
Possible Duplicate: Is it possible to append to innerHTML without destroying descendants' onclick functions?
This question may seem trivial, but I hope you won't ignore it. Before destroying
I'v created a window after creating my main one but calling DestroyWindow on its
I have class Person as following : class Person { char* name; int age;
If one made a web application that never refreshed a page but was built

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.