Is there a way to benchmark the time spent on each callbacks for a ActiveRecord?

0
Rails
I have 20+ before_save callbacks for a active record. Is there a way in rails to measure the time spent on each callbacks while saving a object into the store?
Arul posted

Is there any Spree series anywhere?

1
Gems / Libraries
Hi, First of all, I love all the content here. I literally wanna learn the contents of every video I watch. Everything is like "wow, that's cool, I could use that" to me, so thanks a lot. Now on t...

Is there a way to validate image uploads to validate dimensions?

2
Rails
Hi, I want to validate my image upload field by making a user upload only a square image (i.e 200px x 200px). I'm basically wanting square image dimentions so it will resize and nicely and not loo...
Umesh P Kafle replied
Solved

Is there a way to detect users leaving a page and alerting them

0
Rails
Is there a way to detect users leaving a page and alerting them in rails or would it be better to use jquery? Thank you!
JP posted

Is there a acts_as_taggable gem that works on Rails 6?

1
Gems / Libraries
The acts_as_taggable gem only supports upto rails 5. Appologies if this is a stupid question. Thanks, Gerard
Chris Oliver replied

Is there a "Rails" way to batch process API requests?

2
Rails
I have a situation where I'm generating N post requests for given table in a vuejs app, but sending them to the rails controller one by one. I'd like to batch them all up in the app as a JSON obj...
Brian Carpenter replied
Solved

Is there a service to handle inbound emails?

0
Rails
Hi community :), I coded an application manager where I can save all details about an applicant. But very often I get applications via email. I want to handle inbound emails. When someone sends me...
HannesMatthias posted

Is there some sort of reddit CSS guide?

0
General
Hello everyone,, I learned CSS when I was younger on Neopets and remember most of it, but I don't quite know what reddit calls everything/how attributes are named. Is there some sort of guide float...
Jassim posted

Is there a better solution that Paperclip to manage profile pictures ?

5
Gems / Libraries
Hi everyone, I'm asking this question because it seems pretty hard to setup, between Image Magick and all the mecanics there is to put to work... I saw there was another solution Carrierwave but w...
Damian Nelwep replied

Is there a link somewhere for the source code relevant to each webcast?

0
General
-eom
Noah Stern posted

Are there any episodes or series on CMS related gems ?

5
General
Hi, I have to build CMS for one of my clients. I would like to know your suggestions also please let me know if we have any related videos here. Thanks, Pardha
Matt Walston replied

Are there any up to date tutorials for jquery-sortable?

8
Gems / Libraries
I've built a todo list that consists of lists and tasks. I am looking to use sortable to allow someone to move items around and between lists. Can anyone recommend any resources on how to do this? ...
Ohad Dahan replied
Solved

Are there any WORM (write once, read many) data stores that integrate well with Rails?

0
Databases
I've gotta store a bunch of events, which are snippets of data that contain information about a thing that happened inside the system I'm working on. I'm building out audit trail, which could poten...
Chris Zempel posted

Is there less opportunity for junior developers/1st job seekers in Rails?

0
Rails
It seems that almost all of the Ruby on Rails job postings are for senior developers, usually with 5+ years experience, although I am aware of the caveat that one should not let that stop them from...
Rails Addict posted

why there is no crsf token when i use remote true with data type as "script" ? How this is different from ajax?

1
Rails
<%= select_tag "event[#{inquiry.slug}]", options_for_select([ "PENDING", "CONFIRMED" ], inquiry.status), :data => {url: update_status_vendor_inquiry_path(inquiry),method: "put", type: "script...
Chris Oliver replied
Solved

Are there any reasons why my Helper methods are not picked up?

1
Rails
Hi I have a helper method, which converts currency to pounds. Is there any reason why this donest get picked up in the mailer templates, but works thoughtout the rest of the site?
Chris Oliver replied
Solved

Is there a better way to simplify this?

9
Rails
Hi again, I want to know if there is a better way to get a list of categories which only have products. I have tried to do `@categories = Category.where(category_type: 'product').order(name: :as...
Chris Oliver replied
Solved

Is there a good reason to not use keyword arguments always?

1
General
I have used keyword arguments for some of my methods before, but haven't really thought about why not use it for all methods with arguments? Seems like there is no good reason to have the caller ...
Chris Oliver replied
Solved

Is there an easy way to display open or closed based on time of day?

1
General
So, I am making an application that is listing multiple businesses. I am wanting to have a label that displays open or closed for each individual business. Could anyone give me guidance on how to m...
Chris Oliver replied

Is there a well-liked solution for handing nested model forms?

6
Gems / Libraries
I am not sure what the consensus is on the best approach to handling nested model forms is. The solution in https://gorails.com/episodes/forum-nested-attributes-and-fields-for can work, but doesn'...
Rutul Dave replied

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.