Skip to main content
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?
General • Asked by Aime Ngongang
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?
3
posts

Devise no current_user data after update
Gems / Libraries • Asked by Erick Sitter
Forum Threads Controller class ForumThreadsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] before_action :set_forum_thread, except: [:index, :n...
2
posts

Subtract until zero then go to next record
General • Asked by Wouter van den Beld
Hi, I am looking for this: for a warehouse application for ordering and keeping stock for machine maintenance . i have multiple record of items that coming in. On Monday i received a it...
5
posts

How do i track a course progress?
General • Asked by Jay Kapoor
Hey Chris, I have been trying to build a onemonth like sample website. How do i track the user's progress for each of his course. Just like onemonth all these courses have multiple episodes, and...
5
posts

Integrate active admin in a rails app that has a dashboards controller named as the default dashboard for admin active gem?
General • Asked by John Munyi
Hi there I have an app which I need to add active admin dash but already has a model with the same name dashboard.. Will that cause problems in routes?
1
post

How do I implement a model association that when changed older records are not affected
General • Asked by John Munyi
Here are my models (User , Project and Task) A user has many projects , a project has many users , A project has many tasks and a tasks belongs to a project , a user has many tasks and a task belo...
7
posts

let users edit their own posts
General • Asked by Erick Sitter
I currently have it setup to where only the admin can edit posts, but would like if the user can edit their posts but no other posts that were not made by them. Forum Posts Controller class F...
3
posts

Use a gem I created, that needs to remain private?
General • Asked by Nick McNeany
Hey Chris, First, thanks for all the great videos and for taking the time to answer all these questions! I want to make a gem for a front-end, Bootstrap spin-off, framework. I've watched your...
3
posts

How would i go with making an inventory for products?
General • Asked by Wesly Mezarina
I'm not sure if i'm saying it right but how can i manage inventory for my products? What are some steps that i have to take to get started?
5
posts

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

Subscribe to the newsletter

Join 24,647+ 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.