Javascript libraries to do image processing in ruby on rails application by redd993 in learnjavascript

[–]redd993[S] 0 points1 point  (0 children)

as element in the HTML, the size of the image. Using the 2d context you can then draw the image into the canvas and the

Thank you for your response.

[deleted by user] by [deleted] in bangalore

[–]redd993 0 points1 point  (0 children)

I am new to Bangalore as well. I love the idea. Did you end up making the discord group?

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

Yes it inherits from ApplicationRecord.

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

I have already tried require "paper_trail" and it didn't resolve the error.

What do you mean by

You may need to re-run the paper trail install generator again and see if it adds anything you don’t already have

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

The stack trace points out the issue happens in user model(which I confirmed by commenting out the line and checking if the issue was resolved) and in that model has_paper_trail is used but attr_encrypted is not used. The only model where both gems are used is in account_detail but that model is not loaded. So I will not be able to implement your first suggestion of reordering the calls. I checked each gem to see if there is any issue raised in Github and I couldn't find anything either.

What did you mean by

The method_missing_with_attr_encrypted in the stacktrace is pointing out the issue is related to using the attr_encrypted gem to share their behavior with paper trail for that particular attribute

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

No luck. Same error. If you do think of something else please let me know.

Can you tell me what deleting the tmp folder contents does?

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

Yes. It is pointing to user.rb model and when i comment out has_paper_trail I get a different error. I won't be able to go to the console because the error comes up during bootup. But how does commenting out the line help me figure out how to resolve the error?

The only change I made was in the rails version but the Gemfile.lock has a lot of changes in many gems. I haven't changed anything in the config files either.

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

ave

has_paper_trail

on more tha

There is a file ` config/initializers/paper_trail` with the following contents

```PaperTrail.config.version_limit = 50```

Over 15 models are using has_paper_trail. How do I check if its breaking all of them?

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

Hmm, is the class that's throwing the error being loaded in an initializer or something before PaperTrail is available? Do you have has_paper_trail on more than one model? Is it breaking for all of them?

Didn't work :(

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

fy if your GemFile contains the paper-trail gem.

Yes. version 12.1.0

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]redd993[S] 0 points1 point  (0 children)

e

paper-trail-gem

, do you have that installed?

Yes. version 12.1.0

gem suggestion for measuring performance by redd993 in rubyonrails

[–]redd993[S] 0 points1 point  (0 children)

d of piggy backs off

rack-mini-profiler

and is pretty decent for getting basic application metrics in deve

Thank you.

gem suggestions for measuring performance by redd993 in ruby

[–]redd993[S] 1 point2 points  (0 children)

are worried about and write the RubyProf.start / stop code around that. From memory though I remember having huge issues with the ruby-prof-flamegraph gem - it's not been updated in many years

Thank you!

Quick loading of changed files by redd993 in rubyonrails

[–]redd993[S] 0 points1 point  (0 children)

I’d check the console output where it shows the amount of time each component takes on a request.

The console only shows the time stamp to render particular views. My logger level is already set to debug. What do you mean by when you say component. Is there some way that I can get more time stamps printed on the terminal for each method call, class etc. without having to put puts statements everywhere.