Ruby on Rails Community Forum

Multiday with calendar gem

4
General
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 durati...
JM replied

redirect loop on ActiveAdmin and authorization with cancancan

12
Gems / Libraries
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 Processing by...
JM replied

How do I make commentable comments available on the index page?

4
General
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.
Chris Oliver replied

Integrate active admin in a rails app that has a dashboards controller named as the default dashboard for admin active gem?

0
General
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?
JM posted

Stripe - Not cancelling access until the end of subscription period

6
General
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 they...
Chris Oliver replied

Group records by month to display in a chart

14
General
Hi Chris Im using HighChart and I have some data that want to display in group by month.
Francisco Quinones replied

How do I implement a model association that when changed older records are not affected

6
General
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...
JM replied

How do i track a course progress?

4
General
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 i ...
Jay Kapoor replied

let users edit their own posts

2
General
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 Forum...
Chris Oliver replied

Updating Forum_Posts getting routes error

2
General
app/views/forum_posts/_forum_post.html.erb <%= div_for @forum_post do %> <%= image_tag forum_post.user(:size => 65), :class => "img-circle avatar" %> Posted by <%= forum_post...
Erick Sitter replied

Checking if Forum_Thread is updating?

3
General
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...
Chris Oliver replied

Devise no current_user data after update

1
Gems / Libraries
Forum Threads Controller class ForumThreadsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] before_action :set_forum_thread, except: [:index, :new, ...
Chris Oliver replied

Updating forum thread creates new post...

0
General
Forum Thread Controller class ForumThreadsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] before_action :set_forum_thread, except: [:index, :ne...
Erick Sitter posted

How would i go with making an inventory for products?

4
General
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?
Chris Oliver replied

No action "edit" in forum_posts_controller

0
General
Forum_Posts Controller class ForumThreads::ForumPostsController < ApplicationController before_action :authenticate_user! before_action :set_forum_thread def create @forum_post = @for...
Erick Sitter posted

undefined method username after update

0
General
Forum_threads Controller class ForumThreadsController < ApplicationController require 'forum_controller' before_action :authenticate_user!, except: [:index, :show] before_action :set_foru...
Erick Sitter posted

How do I implement Facades Pattern on a already advanced Ruby on Rails project?

2
General
A few days ago read the [four rules for developers](https://robots.thoughtbot.com/sandi-metz-rules-for-developers) and the Facade Pattern got my attention, however, find it somehow complicated to i...
Andres Max replied

Forum_posts edit coming up as nil

2
General
ActionView::Template::Error (First argument in form cannot contain nil or be empty): 1: <%= form_for [@forum_thread, @forum_post] do |f| %> 2: Reply to thread 3: 4: ...
Erick Sitter replied

Number of posts on index / Posts pagination

2
Rails
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 hav...
Erick Sitter replied

Backend and Frontend co-operation

1
General
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 mod...
Chris Oliver replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.