Ruby on Rails Community Forum
How to attach "users" to a tenant/tenants with Rails multi-tenancy/apartment
11
Rails
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 them ac...
Tabish Iqbal replied
Solved
How do I integrate the local_time gem without using the asset pipeline?
1
Gems / Libraries
How do I add the local_time gem to my project without using the asset pipeline as shown in one of the tutorial videos on building a user forum (https://gorails.com/episodes/forum-time-zones-with-lo...
Chris Oliver replied
Stripe Subscriptions: Duplicate Customers
14
Rails
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 all ...
Stephen Swann replied
Solved
assign_attributes not working
2
Rails
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 f...
Chris Oliver replied
Solved
Disaster recover plan?!
9
Servers
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 recove...
Gary Traffanstedt replied
Solved
JSON Web Tokens with Devise & Warden (--api)
0
Rails
Hello,
You can create an episode with the same typology ( https://gorails.com/episodes/jwt-with-devise) using a project of this type:
rails new weather --api
thank you
regards
Antonio F. posted
Youtube text transcription
1
Rails
Hello, i'm wonder if there's a way to get the youtube caption text after being autogenerated by youtube itself?
Thanks a lot,
@Carlitos
Miguel replied
How can I use Rails Each Array and In-page search to show/hide div content
2
Rails
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 ...
Omar Khedr replied
Solved
Do I need rails-ujs and jquery_ujs?
4
Javascript
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 wit...
Robert Motion replied
Solved
How does Chris open NERDTree by default when he runs "mvim ." ?
2
Tips
When I open a directory with mvim, I don't seem to be getting nerdtree. Instead, I get the regular directory buffer that is styled like nerdtree. When I open a file from this regular tree view, it ...
Ohad Dahan replied
Link to a method in my model
1
Rails
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 create a ...
Simon P replied
Solved
What do you like to do away from the computer?
1
General
Hey everybody,
I'm curious what you guys like to do when you take time off from programming.
I personally like to play video games, or lately go on hikes or mountain bike. I recently bought a mo...
Chris Oliver replied
Hatch / Updates
1
Servers
Are you going to manage the updates of the core components (vs gems) like Postgres / Redis etc ... ?
Chris Oliver replied
Solved
Clone GIT project from another version of Rails
0
General
Hi Chris,
See how to work a project in rails (4 - 3) on my computer (rails 5) with the RVM.
Thank you
Mauricio Duran posted
Working with FullCalendar in Rails
0
Gems / Libraries
Hello Cris,
Excuse my English. I want to know how (rails v-5) work with FullCalendar and simulate an example ?.
I have seen several URLs and GitHub, but they all work differently ...
Thank you
Mauricio Duran posted
How to redirect batch of urls from routes.rb
1
Rails
I have an issue here and struggling with it for hours.
For SEO purpose, I have to redirect (301) something like 200 urls for now, maybe more later, maybe less.
I want to have easy access to it. So ...
Chris Oliver replied
Rails5 + JQuery progress bar not functioning
1
Javascript
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...
Neil Patel replied
Solved
Using will_paginate and .limit(x) together.
6
Rails
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(site_i...
Simon P replied
Solved
Struggling with an association test
1
Testing
I have a project that has a User, a Building, and a Role
There is a building_roles table that is user_id, building_id, and role_id
Then I have a has_many :users through building_roles
There is a va...
John Sanchez replied
Trying to emulate `belongs_to trough` using `has_one trough` but having problems
0
Rails
Imagine a travel website where you have `HotelOwner`s and `Tourist`s. When they start a conversation, the app creates a join model named `Conversation` using has_many through. It's a classic many t...
TL posted