Is it safe to switch Apartment tenant using session variable to pass the tenant id?
Thanks Casey, just wanted to get a second opinion on this one..
I am switching based on user id, not subdmain that's why :)

3
Rails
Form not working for polymorphic has_many through association
So Rails has some interesting behaviors to learn when saving models with join models. Most noteably you can save the join by adding the secondary child and passing it to the array on the parent. Fo...

2
Rails
Cross-platform rich text editing
Thanks, Chris.
Will try with markdown first and take it from there!

3
General
Best way to create a report/spam button?
Casey, thanks for the suggestions. I appreciate the time taken to help.

3
Rails
add index to nested forms
Seems strange to me. In the meantime, I found a workaround using CSS.
this is the top of my sub-form:
``
and this is the CSS added:
```
body {
counter-reset: secti...

4
Rails
How to read database table in Application.rb
I am adding CORS validation in application.rb filw where domain names are given in Environment variable but I want to keep all domain in database table and validate these domain during CORS val...

1
Rails
Rails mongoid connection to remote cluster
I am trying to make a rails 4 application with mongodb (skipping active record). I created a cluster on https://cloud.mongodb.com, which has three hosts. The cluster is accessible in the Mongo Shel...

1
Rails
Hatch - Deployment - Server monitoring
Hello Chris
I am looking to monitor nginx and passenger

3
Servers
Hiring Part Time Rails Devs
Bumping this in case anyone else is interested.

3
General
How do I create a virtual balance model in Rails?
All of you are attempting to re-implement book-keeping from first principles.
When what you need is Plutus. https://rubygems.org/gems/plutus

11
Rails
Checking for uniqueness
You can create a custom validations to do anything you need (it runs arbitrary code you place in it)
Just make sure it's efficient with proper indexes etc.
I'm not sure if I got the model perfe...

4
Rails
How do I duplicate or move a carrierwave image that's stored on S3?
Media page for controller:
User can upload an image.
User can also create a folder.
I want the user to have the choice to either move or copy the uploaded image into the folder.
I've looked a...

1
Rails
Episodes on Chef and Capistrano ?
Chef is a bit overkill for a single app deployment. It's really useful when you have tons of nodes and need to involve provisioning. Capistrano or Mina are a good fit for basic apps and you can d...

2
General
How do I design a multi-tenacy Data Model for a ROR Whitelabel App
Hey James,
Have you checked out Chris' series on multitenancy?
https://gorails.com/series/multitenancy-crash-course

2
General
Move a Legacy App in Production to a local Development Environment
Yeah, Vagrant is probably what you'd want in this case. Docker is more for you to containerize your app so it could run anywhere, not necessarily for mimicking your existing production host.
You...

7
Rails
Companies / Employees / Products
So it sounds like you have a join table possibly missing called company_employees or company_users that would allow users to belong to multiple companies. That should give you the base foundation f...

2
Rails