Giter Site home page Giter Site logo

utkars / model_info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nitanshu/model_info

0.0 2.0 0.0 120 KB

This is an engine for providing all model's and there associated model's CRUD and also enable user to download the CSV, XML and JSON files of Model's and their associated data.

Home Page: https://rubygems.org/gems/model_info

License: MIT License

Ruby 40.73% JavaScript 4.21% CSS 4.75% HTML 50.31%

model_info's Introduction

ModelInfo

ModelInfo gem provides all models(available in your application including engine’s model) CRUD and all associations of a model and their CRUD.

Installation

Add this line to your application’s Gemfile:

gem 'model_info'

And then execute:

$ bundle

Usage

To use this gem you just need to mount it in your route file config/routes.rb

mount ModelInfo::Engine => '/model_info'

Then to go to the dashboard hit the url as:

your_application_url /model_info/models

Working Status

The download option for PDF, EXCEL and DOCX would be provided in an initializer file to make it true or false and also I will provide site logo and title option in an initializer file.

Flash notification will be implemented with pnotify gem.

Bugs

This engine breaks on polymorphic association.

I am not handling the exceptions so it will break if you will fill bad data or something a model validates upon.

If your are using devise or active_admin then you need to be aware of layout and making it redirect to the page you want if there is any url hit without user login

for example:

<tt>
layout :determine_layout

protected
def determine_layout
  current_user.nil? ? "devise":"application"
end
</tt>

It will collide with my layout so avoid doing this or make your invalid request redirect to the right path.

model_info's People

Contributors

nitanshu avatar

Watchers

James Cloos avatar Utkarsh Dwivedi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.