Skip to main content
Gravatar
Stripe Subscriptions: Duplicate Customers
Rails Solved • Asked by Nick McNeany
Hey Eeveryone, I'm creating a subscription site using Stripe v3. For the most part everything is working fine, but I noticed in my Stripe Customer dashboard there are duplicate customers (for al...

Gravatar
Link_to error
Rails Solved • Asked by Simon P
Hi I have my header in a partial which then appears on every page through the application template. In the header I have an About link: <%= link_to "About", 'about' %> This works fine i...

Gravatar
Exception/error reporting from live.
Rails Solved • Asked by Simon P
Hi When my app crashes in live it would be nice to get emailed the stack trace/error info. Does anything exist to do this? I found honeybadger.io which looks about right but is this the be...

Gravatar
How to attach "users" to a tenant/tenants with Rails multi-tenancy/apartment
Rails Solved • Asked by Andre Goldstein
Hey guys, Have been watching some great videos on multi-tenancy with Rails but one thing I can't quite get my head around. If a `User` remains global, what is the best strategy for giving the...

Gravatar
assign_attributes not working
Rails Solved • Asked by Charles Smith
I just signed up for Payments with Stripe and Rails Master Class and am loving it...can't walk away from it; learning a ton! Having an issue though and was hoping someone could lend a hand. I am...

Gravatar
How can I use Rails Each Array and In-page search to show/hide div content
Rails Solved • Asked by Omar Khedr
I'm trying to set up a simple search bar to show/hide content in my rails app. Specifically, trying to allow someone to search for a specific user via username in my chatroom which are being shown ...

Gravatar
Disaster recover plan?!
Servers Solved • Asked by Karim Tarek
Hello, So I'm deploying my first Rails app built for a customer – 🎉 – to production in couple of days – I'm using Hatch – and I'm not sure what kind of setup/plan I should have for "disater reco...

Gravatar
How do I Export a CSV file where it includes all the nested attributes?
Rails Solved • Asked by Steve
Greetings: I would like to export a CSV file where it includes all the nested attributes. I have an invoice model and a product model. Each invoice has many products. I am able to export to CSV ...

Gravatar
Do I need rails-ujs and jquery_ujs?
Javascript Solved • Asked by Nick McNeany
I'm bulding a rails 5.1.x app so no jQuery, but I'm usining Bootstrap so I added it in. I was adding in `//= require jquery` and `//= require jquery_ujs`, then noticed that rails 5.1 now ships w...

Gravatar
Link to a method in my model
Rails Solved • Asked by Simon P
Hi I have a method called Search(search) in my model which is called from my controller. This works fine when I enter a search term in an input box in my view. What I now want to do is creat...

Gravatar
Rails How to link an email form with Sendgrid?
Rails Solved • Asked by Omar Khedr
I was able to create a contact form that when a user clicks submit - its send an email (which i get in my yahoo inbox). I would like to now have that email be sent via sendgrid so that I can an...

Gravatar
Following "Scheduling post" episode with background jobs
General Solved • Asked by Christophe Estanol
Following Chris great post on scheduling I am using `delayed_job_active_record` to schedule quote from my app to be tweeted and shared on FB. Here is my `quote.rb` model with the current logic: ...

Gravatar
Hatch / Updates
Servers Solved • Asked by Louis-Philippe ENGELMANN
Are you going to manage the updates of the core components (vs gems) like Postgres / Redis etc ... ?

Gravatar
Bye bye Heroku 👋 welcome Hatch 🐣 Deploying my first app, few trivial question :)
Servers Solved • Asked by Karim Tarek
Hello, Although I've been working with Rails for about 3 years now I was never resposible for deploying apps and dealing with servers – embarrassing, right? – apart from a side project I used H...

Gravatar
Rails5 + JQuery progress bar not functioning
Javascript Solved • Asked by Neil Patel
Implementing a JQuery progress bar so when you scroll down it should show a green bar across the top. When I start scrolling the progress bar does not appear. I use inspect element on the bar div c...

Gravatar
Using will_paginate and .limit(x) together.
Rails Solved • Asked by Simon P
Hi It appears that will_paginate and .limit(x) will not work together. So this didn't work: (I am trying to get 150 most recent records and paginate them) @articles = Article.where.not(...

Gravatar
Are there any up to date tutorials for jquery-sortable?
Gems / Libraries Solved • Asked by Christopher Stewart
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? ...

Gravatar
How do you charge for building web app projects?
Rails Solved • Asked by Arjun Rajkumar
Hey all.. Just needed some advice/suggestions on how to charge for building a web app. Would be great to hear how you (freelancer or agencies) charge for projects? Do you breakdown into front end +...

Gravatar
Advice on implementing a template system in Rails
Rails Solved • Asked by Jamie Carr
I am currently building a Rails app that allows users to create and manage projects. Within these projects are different groups and tasks which are of course associated models belonging to the proj...

Gravatar
How do I prepopulate table data for a new registered user?
Rails Solved • Asked by Alex R
I'm wondering how would one go about prepopulating certain data table for a new user? Let's say I have a table with posts and a table with likes, and when new a user registers I'd like to make it s...