Ask A Question

Notifications

You’re not receiving notifications from this thread.

Admin Interfaces with Administrate Discussion

*shudder*.. "automagically"

Reply

I would not trust this with production data. It's much much much too early for anything more than a pet project.

Reply

Maybe, maybe not. It's definitely new but it's not much more than some basic scaffold generators right now. Nothing too special. I wouldn't use it on a client project yet, but I'd absolutely use it on personal projects.

Reply

really like the UI and simplicity of this Gem but yeah i think its too early to adopt..I couldn't find a command to remove all the files it has generated..is there any?

Reply

It's unlikely. Your version control system provides this.

Reply

Amazing start. So happy to see this solution. Thank you for this tut!

Reply

Great Tutorial. I would definitely use it for my personal project. My only concern if it works properly with Heroku in Production mode ?

Reply

I don't think there are any changes between the gem in development and production. You should be safe there.

Reply

Didnt find implementation for custom pages. Or there is nothing about this?

Reply

Since these are just regular scaffolds, you can add routes and actions like you normally would. It's not really documented anywhere yet, but that's about all you would do.

Reply

Hi Chris, Thanks very much for this overview. I'm trying to use this, except I'm running into a problem, which I think is related to have objects for which there is no controller.

I am currently getting this error:

NameError in Admin::Users#show

Showing /Users/mm/.rvm/gems/ruby-2.2.2/gems/administrate-0.1.3/app/views/fields/has_many/_show.html.erb where line #24 raised:

uninitialized constant Mailboxer::MessageDashboard

I think the problem might be that it can't make a space in the dashboard if there is no controller action. Do you have any ideas for how to solve this?

Thanks very much.

Also, if it helps others, if errors come up when you try to run the installer, try deleting the routes, running 'spring stop' in your terminal and re-running the installer.

Reply

To get your customized views to work move app/views/admin/applications to app/views/administrate/application. The generator does not copy files to the correct path.

Reply

Sounds like a good pull request for someone to submit to the repo if they have time! *hint hint*

Reply

Chris how do you add the top navbar in admin ?

Reply

is this fully supported in Rails 6 now?

Reply

Yeah, should be. I have been using my own fork of it too. https://github.com/excid3/jumpstart

Reply

Great thanks!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.