Skip to main content
Gravatar
Ajax Search Remote True across the site
General • Asked by shakycode
I'm building an app in Rails 4.2.x and I'm using Ransack + Geocoder for my searches. Originally I setup a Remote: True search using Ajax in my index action and I can search no problem with the res...

Gravatar
Could you do a screencast on how to build notifications with Rails?
General • Asked by Ken Hibino
I've been trying to add a notification system (bell icon on the header) to the app I'm building. The implementation I came up with is very awkward and I'm sure there's a better way to do it (maybe ...

Gravatar
How do I connect multiple devise apps for a single login to any of the apps?
Gems / Libraries • Asked by Thomas Bush
For a rails/devise project I'm trying to figure out how to have the same devise login (email/password) work for multiple apps on different domains. I can't figure out if this would that be conside...

Gravatar
Stripe - Not cancelling access until the end of subscription period
General • Asked by Tony
Chris great job with the Stripe videos. I've just been through and implemented them. :) The next bit I need to add is to stop my users access from disappearing the minute that they cancel. If th...

Gravatar
Multiday with calendar gem
General • Asked by John Munyi
Is possible you shed some more light on this .... which is the best approach in my event.rb i so fat have this class Event < ActiveRecord::Base belongs_to :user def du...

Gravatar
How do I make comments show the user who created it?
General • Asked by Wesly Mezarina
I would think that i could do something like the code below but it's not working. How can i approach this so it can show the user who created the comment and other information about the user? I ...

Gravatar
How do I make commentable comments available on the index page?
General • Asked by Thomas Connolly
I've got the polymorphic comments working on the two show pages, but I want to show all my posts (and reports) along with their comments on the two respective index pages. I can't seem to get it.

Gravatar
redirect loop on ActiveAdmin and authorization with cancancan
Gems / Libraries • Asked by John Munyi
When i try navigating to http://localhost:3000/admin i get "This webpage has a redirect loop" and also my logs I have Started GET "/admin" for 127.0.0.1 at 2015-11-25 17:58:35 +0300 Processin...

Gravatar
Group records by month to display in a chart
General • Asked by Francisco Quinones
Hi Chris Im using HighChart and I have some data that want to display in group by month.

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

Gravatar
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, :new,...

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

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

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

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

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

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

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

Gravatar
Updating Forum_Posts getting routes error
General • Asked by Erick Sitter
app/views/forum_posts/_forum_post.html.erb <%= div_for @forum_post do %> <div class="pull-avatar-left" style="padding-right: 20px; padding-bottom: 10px;"><%= image_tag forum_post.user(:size => ...

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