Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Rails 4 generator of CRUD admin interfaces for existing models.

License

NotificationsYou must be signed in to change notification settings

renderedtext/admin_view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code generator of CRUD admin controllers, views and specs for existing ActiveRecord models. It helps you get the data on screen immediately, so you can customize the specifics to your liking.

It works with Rails 4 and usesransack for search andkaminari for pagination.

The produced markup in views is compatible withBootstrap 3.

Screenshot:

admin_view example screenshot

Usage

Include it in your Gemfile:

gem "admin_view"

Run the generator:

$ bundle exec rails g admin_view User --search_by name_or_email

The--search_by option is not required. However, it's useful most of the time, and you can use any ransack-compatible expression to search in string or text fields.

Other options available are:

  • --no_create - omit functionality to create a new record
  • --read_only - omit create, edit and update functionality

Contributing

Yes! Feel free to fork the repo, make your changes in a topic branch and send us a pull request.

If you're having a problem or found a bug, please open an issue in the GitHubissue tracker.

Credits

Big thank you to allthe contributors!

License

Copyright © 2011-2014Rendered Text. admin_view is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.


[8]ページ先頭

©2009-2025 Movatter.jp