Skip to main content
Handle multiple binding when using CoffeeScript & Turbolinks
Javascript • Asked by Roy Zinn
Hi, After watching the screencast about extracting JS code to CS classes, I tried to follow the same pattern. The problem I am facing is that the page loads new items through AJAX and in order fo...
12
posts

Making a gem like thoughtbot's refills gem
Gems / Libraries • Asked by Josh Sandlin
Heya, I saw on HN the other day that USDS has released a styleguide/component system based off of Bourbon. I'd like to toy around with making a gem based off of the Refills gem that allows me to...
4
posts

Using Microsoft ADFS with Ruby on Rails and Omniauth based on a example cast.
General • Asked by Dmitry Kolesnikov
Building a app that uses ADFS is tricky - maybe making a screencast would be a good idea. https://craig.io/using-microsoft-adfs-with-ruby-on-rails-and-omniauth/ there is a semi beta solution fo...
3
posts

AASM state based on variable
General • Asked by Wouter van den Beld
Hi, I am using AASM and i want to set the state based on the total_price of a purchase order. is this code below the way to go or can it be refactored. ```ruby before_save :check_budget ...
4
posts

twilio as verification mobile systems
Gems / Libraries • Asked by corrado tuccitto
Hello I'd really like to implement the following tutorial (verify phone number by sms) http://fullstackstanley.com/read/verifying-mobile-phone-numbers-with-rails-devise-and-twilio It doesn't w...
3
posts

Page Specific Javascript
Javascript • Asked by Michael Victor
I just came across this article that talks about a gem that allows you to implement cleanly space specific javascript. http://brandonhilkert.com/blog/page-specific-javascript-in-rails/ Howeve...
5
posts

How do I implement voting in Rails?
General • Asked by Karl Coelho
I have an app that has a resource called 'pins'. I want to add upvoting, and possibly downvoting, to the pins, so that I can rank them on the site Sort of like Reddit karma. I was thinking that an ...
3
posts

How to display multiple models in the same infinite scroll
General • Asked by Aaron Mills
So I have a Post model and a Category model and a User model. So a user can have many posts and a post can have many categories. So returning a group of posts is very easy, however a post can h...
3
posts

How do I allow a multi-select to be sortable?
General • Asked by Thomas Bush
I have a ton of many-to-many relationships in a CMS I built for work. I am currently using [Select2 3.5.3](http://select2.github.io/select2/) to assign these relationships. This all works well. ...
1
post

Speed up videos
General • Asked by Chris Ma
Hi Chris, Not really a rails question, but I just wanted to see if you could add a video speed feature as I can go through your tutorials at half the time. Cheers, Chris
2
posts

What do you think about this ?
General • Asked by Maxime Orefice
It's been a few months I follow you Chris and I'd like to say **thank you** for all what you've done. I often watch your episodes and a question got out of my mind, so I have to ask. What do ...
5
posts

Build a Devise Model in another controller
Gems / Libraries • Asked by Roman Storm
Lets say we have a Company model which accepts_nested_attributes_for User (devise Model) How do we Save both a company and User model having that a Company has_many :users and a User belongs to ...
5
posts

Multi form devise registration setup with admin approval
Gems / Libraries • Asked by Roman Storm
Scenario: Implement a registration with multiple steps and after all is complete, display "We will approve your application" at the end and wait when an internal admin (only to owners of the app) ...
3
posts

Advanced Rails books and materials
General • Asked by Andrei Crudu
Hi guys ... and girls. I am interested in any advanced rails materials you might know about that are actually good. Most of the stuff is beginner level and something advanced is hard to come by....
1
post

Pundit: How to apply the same policy to nested resources
General • Asked by Adrien Nhem
working with pundit gem. Is it possible to apply the same rule to nested resources? if show is not allowed in lecture_policy then show in lesson_policy should not be allowed too. ``` Lecture ...
4
posts

How to manually manupulate data in the production database?
General • Asked by Anthony Candaele
Hi, I just successfully deployed my Rails app to a Digital Ocean VPS, following the Deploy Rails guide on this website. Many thanks go to Chris Oliver and James Dullaghan for their help and pa...
7
posts

how to play or download a song
General • Asked by corrado tuccitto
Hi I'd like to create a music catalog online of my music, where people can have a preview of few secs, and then can download them to be available offline but always by the same web page, somethin...
2
posts

how scrabe data every day
General • Asked by corrado tuccitto
how can I schedule to gather data with nokogiri and store it(only what has changed) in a db every morning?
9
posts

Is there an easy way to display open or closed based on time of day?
General • Asked by Stefan Sanchez
So, I am making an application that is listing multiple businesses. I am wanting to have a label that displays open or closed for each individual business. Could anyone give me guidance on how to m...
2
posts

API TOKEN DEVISE
Gems / Libraries • Asked by Saul Felipe Ramirez
Hi, I have a question about which gem is better, devise_token_auth or devise_token_authenticatable?. I see that devise_token_auth was update recently while the other not.
8
posts

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.