Skip to main content
Updating Forum_Posts getting routes error
General • Asked by Erick Sitter
app/views/forum_posts/_forum_post.html.erb 65), :class => "img-circle avatar" %> Posted by Forum Posts Controller class ForumThreads::ForumPostsControl...
3
posts

Checking if Forum_Thread is updating?
General • Asked by Erick Sitter
Now the actual update is simple it's just @forum_thread.update params and redirect, but as you can see it redirects to the forum_thread which renders the show.html.erb which then causes @forum_pos...
4
posts

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....
2
posts

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,...
1
post

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: 2: Reply to thread 3: 4:
3
posts

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 ...
1
post

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

Subscribe to the newsletter

Join 27,623+ 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.