
best way to validate URL
3
Gems / Libraries
Hi Chris!
I've been looking for a good URL validator for a while, but all the solutions I found are kinda weird, so I'm not even sure if I wanna use any.
Here is my usecase: A user can create a p...
Chris Oliver replied
Solved

About In-App Navbar Notifications
2
General
Chris, thanks for this one. Notifications work like a charm.
I was just wondering...
How do I create different JSONs for different models?
```
json.array! @notifications do |notification|
json...
Christophe Estanol replied
Solved

has_one association on polymorphic model
4
General
I have the following models (stripped down for simplicity) :
```ruby
class Activity < ActiveRecord::Base
belongs_to :trackable, polymorphic: true
belongs_to :user
has_one :comment, as: :t...
Greg Answer replied
Solved

How "expensive" are API calls?
2
General
I was thinking about an SPA that has a like button. In "Liking Post" tutorial you wrote a method that checks if the current user liked the post, but in an SPA that means I will have to make a call ...
Isaac Ben Hutta replied
Solved

Any good tutorials on using rbenv?
3
General
I setup my rails environment using the ubuntu installation guide found on gorails (amazingly helpful, thank you) but I'm not really sure how to use rbenv.
I have a few rails apps, and I'm wonderin...
tquill replied
Solved

Pundit scopes
2
General
Hi, i have no idea how to choose best way. There are three models User, Department and Task. Each user assigned to one department (belongs to). Department has many tasks. How to write a policy or s...
Dmitrii Amelchenko replied
Solved

Elastic search & search kick incorporating dates fields and integers
10
General
HI Chris,
I implemented elastic search using search kick gem and all went well from search, autocomplete and suggestions when dealing with text.
Now i wanna perform a similar search on table th...
Chris Oliver replied
Solved

Single Devise User Model or Multiple Devise Models?
8
Gems / Libraries
Hi all,
I am planning to create an application that will have several types of users with a couple shared fields and many unrelated fields. What would be my best option?
After doing some research...
Francisco Quinones replied
Solved

GoRails Markdown and Preview
6
Gems / Libraries
Hey Chris,
Just wondering what are you using to preview Markdown in forum posts? I watched the whole Forum series and I saw the other video about html-pipeline gem but you don't mention syntax hig...
Chris Zempel replied
Solved

Rspec Test on Multi tanent app with aparment gem
1
General
Hi I'm having a hard time figuring this out.
https://gist.github.com/Frank004/8aa4acf20f60a3666a42
Im starting to do test on my Multitenant app and encounter a problem when trying to run the pro...
Chris Oliver replied
Solved

How to know if the user is logged in, in a mobile app.
2
General
Hey guys, I'm trying to figure out how the user authentication works with mobile apps that consumes the Rails API.
I know I can send a POST request to the server to register the user and then gener...
Isaac Ben Hutta replied
Solved

medium/gorails like loading progress at the top of the page
5
Javascript
Chris,
What turbolinks compatible solution (gem or anything) would you recommend for implementing loading progress bar for page load?
Thanks,
Szilard
Sean M replied
Solved

Re: In-App Navbar Notifications work on page load but not page change
8
General
Hey Chris,
Just watched and implemented the code from this screencast and it's working well. However, I realised that it only works on first page load. Subsequent pages do not run the function. N...
Ariel Wulkan replied
Solved

Create shopify type of Application
1
General
i'm currently working on multitenant application that enable user to create a personalize website after selecting a template, please is there any gem or method to achieve this?? Shopify type of App...
Chris Oliver replied
Solved

Following "Scheduling post" episode with background jobs
4
General
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:
`...
Lykos replied
Solved

subscribe if old one month user
1
General
Hey Chris,
Just wanted to let you know, that I couldn't subscribe from my profile. I'm used to be subscribed to onemonth, so I got the free half a year subscription to gorails. That has expired a ...
Chris Oliver replied
Solved

Reoccurring events with simple_calendar and ice_cube
2
General
I am developing a Rails app that has a `Task` model. It's like any basic task tracking system where you can set some attributes (name, activity, status, priority etc.) and a due date. For my syst...
Dan Tappin replied
Solved

How to I access a position attribute on a join model?
2
General
I have case studies and site models in my database. I have a `has and belongs to many` association set up between them.
## site#show
When on a `site#show` page I want to write the following erb...
Thomas Bush replied
Solved

Multitenancy with the Apartment gem
5
Gems / Libraries
Hi Chris Im trying to apply the Multitenancy to a exiting app. at the moment the tenant get create. how can I use the exiting that to be one of the tenant. When I enter with a exiting user to the t...
Francisco Quinones replied
Solved

Episodes Source Code
4
Site Feedback
Is there any way you can provide us with the source code for the episodes?
Chris Oliver replied
Solved