Skip to content
Atastor edited this page Dec 13, 2012 · 18 revisions

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:

Data handling

User Interface

Some hints on using Record Select

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 method record_select_include, which returns an array of associations to be included (version: masters from December 2012).

User & role management

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

Clone this wiki locally