FAQ Database Discussion Community


Upgrading from 4.0.2 to 4.2.0 breaks paper_trail code

ruby-on-rails,upgrade,papertrail
I am getting the following error in 4.2.0 which works in 4.0.2: undefined method `reverse!' for # in the following line of code: def show @client = Client.find(params[:id]) @versions = @client.versions.reverse! <-- error line end typing in @client.versions.class yields the following: >> @client.versions.class => PaperTrail::Version::ActiveRecord_Associations_CollectionProxy >> Any idea anyone? Thanks....

Rails show views for PaperTrail versions

ruby-on-rails,versions,papertrail
I have quite an odd usecase for PaperTrail. In my scenario a version is based on a physical event happening. Due to this, versions of my model are only created when I say. Because of the above. I wish those versions to be capable of the following things: When I...

Change the app-name sent by docker's syslog driver

docker,syslog,papertrail
I'm using Papertrail to collect my Docker container's logs. Do to that, I used the syslog driver when I created the container: sudo docker run --name my_container --log-driver=syslog ... ... and added the following line to my /etc/rsyslog.conf *.* @logsXXX.papertrailapp.com:YYYY At the end, I get on Papertrail logs like this:...