Nested forms with rows like a table
Hi Chris the table worked brilliantly.. but i am still struggling with automatically populating the nested form with related record.. is it even possible in the first place ? such that if one selec...John Munyi replied
How do I make comments show the user who created it?
I'm not sure how i missed that simple mistake. Thanks!Wesly Mezarina replied
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?
Have you watched the AJAX episode? https://gorails.com/episodes/jquery-ujs-and-ajaxChris Oliver replied
redirect loop on ActiveAdmin and authorization with cancancan
settle for activeadmin with device for Authorization and sorcery for the App .. not ideal but got the job doneJohn Munyi replied
How do I make commentable comments available on the index page?
Nothing really. It's pretty straightforward. You just want to use `remote: true` on the form and add the JS response to the action like you normally would. That's about 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?
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?John Munyi posted
Stripe - Not cancelling access until the end of subscription period
Glad you got it working! I wondered if that might be the case. It looked like everything would work from here. :)Chris Oliver replied
Group records by month to display in a chart
thankyou thats the best solution.Francisco Quinones replied
How do I implement a model association that when changed older records are not affected
Then for now no need..... It's working so I will let it beJohn Munyi replied
How do i track a course progress?
Or even if you can post the steps to achieve the same, that would be quite helpful as well.Jay Kapoor replied
let users edit their own posts
You beat me to it! Pundit's exactly the right thing for this.Chris Oliver replied
Updating Forum_Posts getting routes error
I eventually got it working, I just called the controller and passed (@forum_thread, forum_post)Erick Sitter replied
Checking if Forum_Thread is updating?
Well, the params in the routes are used to lookup the ID column in the tables. You're using the same params id to look up two different records which doesn't quite make sense there. I would not set...Chris Oliver replied
Devise no current_user data after update
Hey Erick, did you get this figured out? I was doing a bit of traveling for the holidays and missed your post.Chris Oliver replied
Devise: current_user not saving to @forum_post.user
It sounds like your `forum_post.user.email` isn't working. Your forum_post must not have had it's user_id set in the database. It looks like your controller is setting it properly, but you should c...Chris Oliver replied
Updating forum thread creates new post...
Forum Thread Controller class ForumThreadsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] before_action :set_forum_thread, except: [:index,...Erick Sitter posted
How would i go with making an inventory for products?
Spree is one approach if you want to use something premade. As far as keeping inventory of things like shirts, you can probably do two separate things: 1. You keep track of new additions to o...Chris Oliver replied