Skip to main content
Gravatar
Devise models and Single table inheritance and custom class methods
Gems / Libraries • Asked by John Munyi
Hello there I am in a little fix and cant figure out whats going in, i am attempting to have a devise model User share via STI with 2 other sub-classes . I am able to populate both classes with dat...

Gravatar
How do i collect the users emails into mandrill ?
Gems / Libraries • Asked by Ahmed Althani
I have watched the mandrill tutorial. I just have a quick question. How can i link the list on mandrill or any email service with the users emails (when the user signs up ) and update the list wh...

Gravatar
Use datatables like handsontable
General • Asked by Wouter van den Beld
Hi, I would love to see a episode that explains the use of json/ajax and load and save back data back to the server. For example i want to use handsontable (http://handsontable.com/) but i cant ...

Gravatar
Who is using Hashicorp Otto?
General • Asked by Jay Killeen
Hi All, I've recently gotten back into my rails development after some Salesforce related projects at my work. In that time I had to format my laptop from Ubuntu to Windows 10. I've been stru...

Gravatar
2 Factor Authentication
Gems / Libraries • Asked by Shaun Fahey
Hey Chris. This would be good for a screencast, well i'd like to see it for sure! https://github.com/tinfoil/devise-two-factor

Gravatar
How do I hold Braintree payments for longer than the given escrow duration?
General • Asked by Tharan Raj
I want to create a payment system using Braintree that will only charge the user once a certain condition is met. Lets assume its like freelancer and we need the payment to only go through when the...

Gravatar
Performing calculations using scopes
General • Asked by John Munyi
hello , hopefully this isn’t too ambitious but i am hoping there is a way to do simple summation using defined scopes example is i have these scopes : scope :present, -> { where(pre...

Gravatar
Pre-populate association for nested form
General • Asked by John Munyi
Hi so here is what i have : class Attendance < ActiveRecord::Base belongs_to :attendance_sheet belongs_to :user end class AttendanceSheet < ActiveRecord::Base...

Gravatar
GoRails Screencast to setup Algolia ?
General • Asked by Mathieu Martinot
Hi, Is there any screencast or project with Algolia ? I think it would be great !!

Gravatar
I need help setting up Acts_as_Follower Gem
General • Asked by Darion Wood
The documentation for this gem is very shotty, and I can barely understand If you can help me setup the methods for the controller, views, toggle on and off follow button, and blocking users. That...

Gravatar
How would you nest the forum_threads in your Forum series?
General • Asked by Chris Collinsworth
I am messing around with the forum repo and I have been trying to nest the forum_threads inside of a school model. I want every school to have their own forum. What would be the best way to accompl...

Gravatar
validate presence of specific domain in email
General • Asked by John Munyi
Hi there, is a way via regex to validate an email and make sure it belongs to a specific domain, I found the below regex on SO and it doesnt seem to do the job. validates :email, format: { ...

Gravatar
CanCanCan: Defining Abilities
General • Asked by Sascha M.
I'm using the CanCanCan gem. According to the documentation you can define abilities. That is working for me. What I want to do is to limit the access to records, that contain a value. Something li...

Gravatar
Basics commands for using MacVim
General • Asked by Ryan Bent
Hey Chris, Your videos are awesome. I think it would nice to have some of the basic commands for using MacVim while coding.

Gravatar
Add Download Button to csv-export
General • Asked by Sascha M.
Hi, I did everything (and it's working!) regarding this episode: https://gorails.com/episodes/export-to-csv?autoplay=1 How can I add a download-button in my views for that? Thank you guys!

Gravatar
Advanced Ransack Usage
General • Asked by Bryce Roney
Hi all, I've got the following question on StackOverflow: http://stackoverflow.com/questions/34259808/custom-ransacker-on-dynamically-generated-association Wondering if anyone here might have...

Gravatar
undefined method `map' for nil:NilClass on select_collection
General • Asked by John Munyi
Hi, I have been struggling with this error for the last 3 hours and its s bit frustrating: Here is the scenario I am trying to populate a select box with Team names that belong to a specifi...

Gravatar
How do I implement Facades Pattern on a already advanced Ruby on Rails project?
General • Asked by Andres Max
A few days ago read the [four rules for developers](https://robots.thoughtbot.com/sandi-metz-rules-for-developers) and the Facade Pattern got my attention, however, find it somehow complicated to i...

Gravatar
Rails Paperclip Gem - save parent model ID to path
General • Asked by Terence Devine
I created a question on StackOverflow - but it hasn't gotten any attention as of yet, so I thought I'd share it here. If you have any suggestions at all, feel free to share! http://stackoverf...

Gravatar
What else would you add to the Stripe Subscriptions app to 'complete' it?
General • Asked by TWG General
Hi Chris, I was wondering what else you would need to include to ensure all situations are addressed to complete the Stripe Subscriptions application? For example, I'm assuming webhooks for when...