https://github.com/activescaffold/active_scaffold
Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
https://github.com/activescaffold/active_scaffold
Last synced: 20 days ago
JSON representation
Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
- Host: GitHub
- URL: https://github.com/activescaffold/active_scaffold
- Owner: activescaffold
- License: mit
- Created: 2008-05-21T17:47:42.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2025-03-21T18:32:13.000Z (24 days ago)
- Last Synced: 2025-03-21T18:34:48.146Z (24 days ago)
- Language: Ruby
- Homepage:
- Size: 8.86 MB
- Stars: 1,113
- Watchers: 25
- Forks: 331
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rdoc
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ruby-toolbox - ActiveScaffold - Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems. (Rails Plugins / Rails Admin Interfaces)
- awesome-ruby - ActiveScaffold - ActiveScaffold provides quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It's excellent for generating admin interfaces, managing Data-Heavy Applications, creating Widgets or for quick prototyping. ActiveScaffold is completly customizable and offers a bunch of additional features including searching, pagination, layout control and overrides of fields, forms and templates. (Admin Interface)
- awesome-ruby - ActiveScaffold - ActiveScaffold provides quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It's excellent for generating admin interfaces, managing Data-Heavy Applications, creating Widgets or for quick prototyping. ActiveScaffold is completly customizable and offers a bunch of additional features including searching, pagination, layout control and overrides of fields, forms and templates. (Admin Interface)
README
Overview
========
[](https://github.com/activescaffold/active_scaffold/actions/workflows/ci.yml)
[](https://codeclimate.com/github/activescaffold/active_scaffold)
[](https://codeclimate.com/github/activescaffold/active_scaffold)
[](https://badge.fury.io/rb/active_scaffold)
[](https://inch-ci.org/github/activescaffold/active_scaffold)
[](https://opensource.org/licenses/MIT)ActiveScaffold provides a quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It offers additonal features including searching, pagination & layout control. Rails >= 6.1.0 is supported, ruby >= 3.0 required.
Branch Details
--------------
master supports rails >= 7.0.x and <= 7.2.x, and ruby >= 3.1.0
4-0-stable supports rails >= 6.1.x and <= 7.2.x, and ruby >= 3.0.0These versions are not supported anymore:
3-7-stable supports rails >= 5.2.x and <= 7.1.x, and ruby >= 2.5.0
3-6-stable supports rails >= 4.2.x and <= 6.1.x, and ruby >= 2.3.0
3-5-stable supports rails >= 4.0.x and <= 5.1.x, and ruby >= 2.0.0
3-4-stable supports rails >= 3.2.x and <= 4.2.x, and ruby >= 1.9.3
3-3-stable supports rails 3.2.x and ruby >= 1.8
rails-3.2 supports Rails 3.1 & 3.2, and is the current source of the 3.2.x line of gems.Quick Start
-----------
To get started with a new Rails projectAdded to Gemfile
```ruby
gem 'active_scaffold'
```Add jquery-rails to Gemfile, or handle jquery with other tools like webpack or importmap. Also it's possible to load jquery in your layout before application.js using CDN (e.g. jquery-rails-cdn). You can replace @rails/ujs with jquery_ujs, although @rails/ujs should work (never load both).
```ruby
gem 'jquery-rails'
```For rails 7.x, install generator will add `active_scaffold` to `config/importmap.rb`, `app/javascript/application.js`, and `active_scaffold/manifest.js` to `app/assets/config/manifest.js`. It will add `jquery` and `jquery_ujs` to all the 3 files if jquery-rails gem is available.
For rails 6.1, install generator will create `app/assets/javascripts/application.js`, add it, and `active_scaffold/manifest.js`, to `app/assets/config/manifest.js` and add `javascript_include_tag` in the layout, as ActiveScaffold doesn't work with webpack. It will add `jquery` to `app/assets/javascripts/application.js` too if query-rails gem is available, although Jquery may be loaded by packs too and it will work, it won't add `jquery_ujs` or `@rails/ujs` as it's added to `app/javascript/packs/application.js` by default.
Run the following commands
```console
bundle install
rails g active_scaffold:install
rails db:create
rails g active_scaffold:resource Model [attrs]
rails db:migrate
```Run the app and visit localhost:3000/
It's recommended to call `clear_helpers` in ApplicationController, as some helpers defined by ActiveScaffold, such as active_scaffold_enum_options, options_for_association_conditions, association_klass_scoped, are usually overrided for different controllers, and it may cause issues when all helper modules are available to every controller, specially when models have associations or columns with the same name but need different code for those overrided helper methods.
Threadsafe
----------Threadsafe is enabled always since 4.0, and it can't be disabled.
Breaking Changes
----------------When upgrading from 3.x, add `active_scaffold/manifest.js` to `app/assets/config/manifest.js` to prevent issues with assets.
Changing column settings on a request has changed, it must use `active_scaffold_config.columns.override(:name)` at least the first time. After calling `columns.override(:name)`, calling it again or calling `columns[:name]` will return the overrided column. It also supports a block. See [Per Request Configuration](https://github.com/activescaffold/active_scaffold/wiki/Per-Request-Configuration) for examples and more comprehensive explanation.
Changing columns for an action (e.g. add or exclude) on a request must use active_scaffold_config.actions.override_columns, the first time, or use assignment.
If you have a `_form_association_record` partial view overrided, use `record` local variable instead of `form_association_record`.
If you have code rendering `form_association_record` partial, then pass `record` local variable, or use `as: :record` if using render with collection key.
Configuration
-------------
See Wiki for instructions on customising ActiveScaffold and to find the full API details.Credits
-------
ActiveScaffold grew out of a project named Ajaxscaffold dating back to 2006. It has had numerous contributors including:ActiveScaffold Gem/Plugin by Scott Rutherford ([email protected]), Richard White ([email protected]), Lance Ivy ([email protected]), Ed Moss, Tim Harper and Sergio Cambra ([email protected])
Uses DhtmlHistory by Brad Neuberg ([email protected])
http://codinginparadise.orgUses Querystring by Adam Vandenberg
http://adamv.com/dev/javascript/querystringUses Paginator by Bruce Williams
http://paginator.rubyforge.org/Supports RecordSelect by Lance Ivy and Sergio Cambra
http://github.com/scambra/recordselect/License
=======
Released under the MIT license (included)---
A ruby translation project managed on [Locale](http://www.localeapp.com/) that's open to all!
## Contributing to active_scaffold
- Edit the translations directly on the [active_scaffold](http://www.localeapp.com/projects/public?search=active_scaffold) project on Locale.
- **That's it!**
- The maintainer will then pull translations from the Locale project and push to Github.Happy translating!