Feature register pages #758

Closed
wants to merge 22 commits into
from
Commits on Nov 7, 2011
  1. Add simple page registration.

    pcreux committed Nov 7, 2011
    It goes like:
    
    ActiveAdmin.page "My Page" do
    
      content do
        h2 "Hey, this is a custom page"
        para "Awesome!"
      end
    
    end
Commits on Nov 16, 2011
  1. Move shared behavior to Config.

    pcreux committed Nov 16, 2011
Commits on Nov 17, 2011
  1. Refactor Naming for Config and Resource!

    pcreux committed Nov 17, 2011
    Note: The documentation says that when registering a resource you can
    set its name doing:
    
    ```
    ActiveAdmin.register Post, :as => "Article"
    ```
    
    The code however was made so that the :as resource would get a
    plural. For instance:
    
    ```
    ActiveAdmin.register Post, :as => "Articles"
    ```
    
    I fixed this. It might be worth mentioning in the release notes.
Commits on Nov 18, 2011
  1. Remove unecessary code.

    pcreux committed Nov 18, 2011
Commits on Nov 22, 2011
Commits on Nov 23, 2011
  1. Resource names are now titleized.

    pcreux committed Nov 23, 2011