Using ActiveAdmin to Build an Admin UI Discussion
Hey Chris, At min 8 sec 49, i am trying to follow along. My screen looks like http://imgur.com/9bnEuG0 and yours has the user dropdown. I am not sure what I must have missed. Do you know what it is? I will be trying to figure it out here, and will update you if I find it, thanks, and later I am not seeming to get the association of the user :
BODYthis is my post
PUBLISHED ATDecember 28, 2016 23:43
CREATED ATDecember 28, 2016 23:43
UPDATED ATDecember 28, 2016 23:43
This is what I have in admin/post.rb. Is this what you are referring to?
permit_params :title, :body, :published_at, :user_id
Sorta! This will permit it if it's submitted, but your form is automatically generated by your database columns. If your migration didn't include a user_id column, then you won't have that in the form. Check that and make sure you added one, if not you can rollback and edit or add a new migration for it. I think that's probably the culprit.
http://imgur.com/Y59KiQV here is what my migrations look like. I tried rolling back and migrating again. But still nothing. Im betting its probably something super obvious like a typo or something
Hmm, looks right. Also double check you've got a belongs_to :user on the model I guess. I'm not sure what else it might be. That's odd.
ah yes, noob mistake lol, i totally forgot to add the belongs_to, now it works, cool stuff, thanks
Haha no worries man, it's not a noob mistake, definitely one that I'd be like huh that's weird and have to do some digging to make sure it was all configured right myself. Run into those things all the time.
Hey @excid3:disqus, thanks for the vid. How would you rate Active Admin vs Administrate which you covered in Episode 94? I'm looking for something lightweight for one of my bigger apps.
By the way for those reading this. There's been a vulnerability issue reported for the Rails_admin and Administrate gems for part versions. So be sure to update them if you're using those.
I prefer Administrate personally because it's more or less just regular controllers namespaced to the admin area. No special DSLs or anything, so you can customize it just like you would write your normal app.
Also yeah, noticed those security updates recently as well. 👍
Thanks! Will most probably go with that then. Nothing too heavy handed. Had some experience in Active Admin for a project I helped in.. just felt too heavy.
Hey @disqus_RYFYDXZ9Pd:disqus where is the security vulnerability for Administrate? Not seeing a new version since Oct 28, at 0.3.0. Am I missing something?
You should use "RailsAdmin" or "ActiveAdmin" .. what is the most practical?
I didn't get how do you fix the
Path for JQuery UI Datepicker is wrong
Where is the GitHub source code for this episode?
@excid3:disqus I am facing the same problem as @jacobgiberson:disqus and I have added the belongs_to, but still it doesn't show the user and if I post something user field shows empty
I know this is really old but was wondering if anyone had resolved the issues of ActiveAdmin interfering with jquery etc.
I have created an app that works nicely with AA and came here and found the nice tutorial on how to add autocomplete to my app. Trouble is I get the easyComplete(options) is not a function problem.
I tried using the sample autcomplete app. As soon as I add activeadmin to it it breaks too.
Been a big time waster. Hate JS/Jquery for how brittle it is. All help welcome.