-
Notifications
You must be signed in to change notification settings - Fork 332
Integration
ActiveScaffold by itself comes alone so you decide what to use or how to integrate into your solution, allowing to be flexible and avoid dependency problems. Following that approach, there are many gems you can install and ActiveScaffold will integrate them very well out of the box. Note that some of them need some config. So read on:
- active scaffold export Export to CSV plugin
- dragonfly Images & files support
- paperclip Images & files support
- carrierwave Images & files support
- file_column Images & files support
- active scaffold batch Mass data handling
- Record Select Fancy select box alternative, with ajax autocomplete. Very suitable for long datasets
- ancestry Tree structured associations support
- active scaffold sortable Drag and drop sorting
- bitfields Show check boxes for integer bitfields, grouped by bitfield.
- tiny mce Formatted Text Editor
In general using Record Select is as straightforward as one might hope. The following is a list of reminders, what you should not forget (this is work in progress):
- Don’t forget to put
require record_select
into appropriate asset configuraton files (aka javascripts and stylesheets). Esp. in javascripts you might want to check the order of inclusion: including record_select after active_scaffold seems to be necessary (version: masters from December 2012). - If you want to use association’s attributes for looking up stuff, using the
:include => ...config as described in recordselect’s google-wiki is not enough when integrating with active scaffold. You have to overwrite the controller methodrecord_select_include, which returns an array of associations to be included (version: masters from December 2012).
As global user & management integration notes, you need to know that Active Scaffold uses “current_user” method to refer to interacting user in controllers, methods, helpers and views. Devise use the same convention, so you don’t have to do anything there. But in case you use another name, say account or just user, remember to set current_user_method in application_controller.rb:
ActiveScaffold.set_defaults do |config|
config.security.current_user_method = :current_login
end-
CanCan
With CanCan you can control most of AS behavior and appearance per user and/or role. Add cancan as instructed