Skip to content
naaano edited this page May 25, 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

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 alias it or define it in application_controller.rb:

def current_user 
  your_user_method
end
  • CanCan
    Ability#as_action_aliases should be called by the user in his ability class:
    class Ability < CanCan::Ability
      def initialize(user)
        as_action_aliases
      end
    end
    
  • CanTango
  • Devise

Clone this wiki locally