Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

admin-panel

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admin-panel

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Admin Panel

This gem has been created as a recruitment task I was given. It's a set of generators to create administration panel for your website.

Installation

Start with adding these gems to your Gemfile:

gem 'admin-panel', '~> 0.1.5'
gem 'devise', '~> 3.2'
gem 'simple_form', '3.1.0.rc1'
gem 'bootstrap-sass', '~> 3.1'
gem 'kaminari', '~> 0.16.1'

Then do bundle install and run the installer:

$ rails generate admin_panel:install

Using the scaffolder

The scaffolder has basically the same syntax as the Rails one, except there's currently no support for custom namespace.

$ rails generate admin_panel:scaffold NAME [field:type field:type ...]

Running tests

Tests can be run using rake spec. They are written using rspec and ammeter.

Thanks

This gem was based mostly on two different pieces of software: bootstrap-generators and rails-admin-scaffold

I also took the liberty of copying kaminari bootstrap templates from kaminari-bootstrap

TODO

Currently this gem is pretty much one-evening project, I'm not sure if I'll continue it's development past this point.

Things that'd be nice to have:

  • support for anything more than Active Record
  • support for anything more than Erb (haml)
  • support for slim
  • namespace change support and more configuration options
  • kaminari/will_paginate support
  • I liked the idea of copying the files to your project during install at first but now it just seems silly; I should probably rewrite everything from scratch to work more similarly to Devise, including the ability to extend default controllers where necessary
  • I was also supposed to add Carrierwave support too but ran out of time
  • sorting
  • per page count selector

FAQs

Package last updated on 08 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc