Issue deploying Rails app with capistrano
There are a few possible things going on here. Is your rails master key saved as an env varaiable? ``` ENV['RAILS_MASTER_KEY'] ``` This is why the nil class error could be happening. If you don'...
William Kennedy replied • SolvedDisabling a tenant in a Multi-tenancy Saas app with apartment
Go Rails' Stripe lesson and strong params
+1
Brian Carpenter replied • SolvedHow to integrate ransack and datatables in rails app?
In my project there is datatables, using ---gem 'jquery-datatables-rails'--gem 'ajax-datatables-rails', '0.4.3'-- . Now my client need to add ransack to it. Ransack worked well with normal table. B...
Emmanu Varghese postedIs there a "Rails" way to batch process API requests?
Very helpful, thanks.
Brian Carpenter replied • SolvedQuestion regarding the threaded comments! Post titles or link_to post only if the current user is on another users show page.
I get undefined method `post' for # When i try to add a link_to in my _comment partial. Basically the way i have it setup in the users show page, I've created a comments view /user/comments/id i...
Alex repliedHow do you handle the Sitemap for a user generated content website like a social media network?
As long as the page is linked somewhere, Google will usually find and index it automatically, so you may not need to do this as You could probably use the sitemap_generator gem to create sitemaps...
Chris Oliver repliedUse fetch to pass variable in rails
I am creating an app in Rails with Reactjs. I want to pass the value of input field to the controller as a variable so that I can use that variable in def create. How can I do that with fetch?
Sulekha postedPassing ActiveRecord Relation object to params?
In my controller code, under :index action, I have this sample code @obj = UserSource.select('user.source_categories.code as category_code, user.source_categories.name as cate...
MH postedShould I continue using Rails 5 or should i use Rails 6?
Nice. Thanks so much Chris!
Joan Gabun replied • SolvedImport into administrate?
You're welcome! Glad that worked out pretty easily!
Chris Oliver repliedRails/Sendgrid messages are blocked by receiver's servers
Check out what DMARC is, it's the reason your emails are being blocked. https://dmarc.org/ Basically, they're not allowing these emails because they know they didn't originate from the correct ser...
Chris Oliver replied • SolvedCookie Replay Attack
Rails guides talk a bit about how you solve this: https://guides.rubyonrails.org/security.html#replay-attacks-for-cookiestore-sessions
Chris Oliver repliedActiontext used for templates/placeholders
I've got a little business finance management app and I'd love my users to be able to create their own custom templates for quotes/invoices. The way all my competitors do it is through merge fields...
Tim Dowling postedHow to Access rails User session into Laravel Application?
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...
HardikShah47 postedCan't resolve image into URL: undefined method `attachment_url' for #<#<Class:0x0 ...
Fixed 🎊🎉🥳 check : https://stackoverflow.com/questions/61715426/cant-resolve-image-into-url-undefined-method-attachment-url-for-class0x0
almokhtar repliedStruggling with active nav tabs setting active class
I have an issue I haven't been able to solve. I have a products page set up with some different sections via bootstrap 4 nav tabs. General Info, Images, Pricing etc. I am trying to make it so that ...
spacerobotTR postedHow do I calculate a computed value in a model when showing or indexing over that model in its controller?
After sleeping on it, I believe the best way (and the way that requires the fewest queries to Cloud Firestore) is to just download the whole Firestore DB and update from that object every 10 or so ...
Jordan T-H replied • SolvedWorking with ActiveRecord and Google Cloud Firestore
Not sure what the etiquette is for answering or following up one's own question, but I ended up modeling this, because I realized I need some pretty complicated and persistent logic for each docume...
Jordan T-H replied • Solved