Posts by Léo Rocha • 53 points
7 posts
-
1
votes1
answer55
viewsA: New fields stay nil, what to do?
In your controller you must use a before_action to execute the method that will configure the parameters allowed by Settings when creating the account. For example, to configure the allowed…
-
0
votes1
answer211
viewsQ: Calculate the elapsed time after creating a record
I’d like to know how calculate the time between creating a record (created_at) and the current time. My intention is to display this difference in seconds, minutes, hours or days that it occurred.…
-
1
votes1
answer211
viewsA: Calculate the elapsed time after creating a record
I have resolved the question using the following method: time_ago_in_words In your view use the code: há <%= time_ago_in_words(notification.created_at) %> If your date passed as a parameter in…
-
0
votes1
answer61
viewsA: problem in file format validation with Gem Paperclip 5.1.0, Rails 5
If you want to disable spoofing Protection, create the file: config/initializers/paperclip_media_type_spoof_detector_override.Rb And add to it the code: require 'paperclip/media_type_spoof_detector'…
-
1
votes0
answers26
viewsQ: Wizard Progress bar works only after page refresh
When integrating the Wizard twitter bootstrap to my application, I realized that the Progress bar works only when I update the page. I have seen in some places that this may be caused by turbolinks…
-
1
votes1
answer288
viewsQ: Blank marking - Atom
I visualized some video lessons where I noticed some people using blank spaces marking the code with characters and found it very interesting. I wonder if anyone can tell me what this is called and…
-
1
votes0
answers143
viewsQ: Is Meteor.js a good framework for agile development?
I wonder if the Meteor.js is a good framework for web development. Lately I’m doing some research and I can’t find many sources of recent material. I haven’t seen strength in the Brazilian…