Skip to main content
Gravatar
Devise: current_user not saving to @forum_post.user
Gems / Libraries • Asked by Erick Sitter
I'm currently having an issue when I create posts, I always seem to get undefined method "username" or "email", but when using current_user.username or current_user.email it will display just fine....

Gravatar
Updating forum thread creates new post...
General • Asked by Erick Sitter
Forum Thread Controller class ForumThreadsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] before_action :set_forum_thread, except: [:index, :n...

Gravatar
Forum_posts edit coming up as nil
General • Asked by Erick Sitter
ActionView::Template::Error (First argument in form cannot contain nil or be empty): 1: <%= form_for [@forum_thread, @forum_post] do |f| %> 2: <h3> Reply to thread </h3> 3: <div ...

Gravatar
No action "edit" in forum_posts_controller
General • Asked by Erick Sitter
Forum_Posts Controller class ForumThreads::ForumPostsController < ApplicationController before_action :authenticate_user! before_action :set_forum_thread def create @forum_post = @...

Gravatar
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_fo...

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
How about an episode on zero-downtime deployment?
General • Asked by Daniel Weaver
I have a Rails app on Heroku running on just 2 web dynos (Standard type). I'd like to know how best to ensure uninterrupted access to the app for my users while also allowing me to deploy any ti...

Gravatar
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)

Gravatar
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...

Gravatar
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

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
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 ...

Gravatar
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...

Gravatar
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...