Skip to main content
undefined method username after update
General • Asked by Erick Sitter
Forum_threads Controller class ForumThreadsController < ApplicationController require 'forum_controller' before_action :authenticate_user!, except: [:index, :show] before_action :set...
1
post

Number of posts on index / Posts pagination
Rails • Asked by Erick Sitter
I followed your forum series and it's going to work out well for me, but I couldn't figure out how to display the number of posts on the main index for each forum thread. I'd think it would h...
3
posts

Forcing a file to download instead of displaying in the browser
General • Asked by Tony
I've got a website where users can upload things such as a mp3 and the files are being stored on Amazon S3. If a user clicks the file it just seems to open as a streaming file in the browser. I...
4
posts

Backend and Frontend co-operation
General • Asked by Michael Victor
In our rails applications, I generally work on the backend (models and controllers) while another developer focuses on the (Views + JS magic). Generally he gets all the fields available from a m...
2
posts

Orders and Order Items
General • Asked by Michael Victor
I have 2 models, Orders and Order Items. I want the user to be able to add any number of items to an order in the view. How can I structure a form so that I can iterate over the order items or i...
3
posts

Subdomains Email reset with Devise
Gems / Libraries • Asked by Francisco Quinones
Hi Chris so im trying to work with subdomain and maindomain email reset password I use the code on devise and for subdomain work like a charm but for the main domain I get this erro because they d...
2
posts

What are the benefits of using rails-assets version of Bootstrap over bootstrap-sass version?
General • Asked by Dan K
And for other JS libraries as well. [Screencast](https://gorails.com/episodes/rails-assets)
3
posts

Activity Feed with Public Activity Gem ?
Gems / Libraries • Asked by Ahmed Althani
Hi Chris, Thanks for the tutorial. It really helped me a lot. Can you please post a video about How to install the public activity gem to show all the activities done by the user. Thanks a lot a...
2
posts

What is the spinning icon I see on GoRails?
General • Asked by Timothy Chung
I see a spinning/loading icon on the right. In addition, I see the loading lightning-like animation right below the address bar, what gem is it? or what library are you using? Thanks. Tim
3
posts

How can I implement back button and bookmark history with turbolinks ajax and rails 4?
General • Asked by Adrien Nhem
Hi guys! I have been asking this question everywhere... basically I am building a user dashboard and it load the main div with ajax calls. I wanted to know how can I update the URL when an ajax...
4
posts

how to create and use different sub models of base data model
General • Asked by Vikas Sharma
I am an iOS developer developing my first rails app. I would like to have suggestion on what i am trying to build. I want to create a web portal for different type of service providers. Any body c...
2
posts

Firefox rendering issues
General • Asked by Michael Victor
The site - leanhire.co that I'm working on seems to render perfectly on Chrome but it seems to be a mess when I view the site via Firefox. What do you think is missing and what is the best way t...
2
posts

How would you implement a feature like Youtube's "watched" feature.
General • Asked by James Ferguson
Hi Chris, I'm interested in implementing a feature similar to Youtube's watched feature. Where after you've watched a video, a small semi transparent overlay is placed over the video thumbnail ...
3
posts

Stripe Payments
Gems / Libraries • Asked by Corey Holmes
Hey, love the new Stripe video but I'm stuck on something. I am getting the error: uninitialized constant ActionView::CompiledTemplates::STRIPE_PUBLIC. It's having a problem with my meta tag whi...
4
posts

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

Subscribe to the newsletter

Join 18,000+ 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.