Sha256: a1f0b92594290afe0fc7e91ae8df5d291371532b560a85e62fb4e7dc524ec353

Contents?: true

Size: 1.08 KB

Versions: 49

Compression:

Stored size: 1.08 KB

Contents

==================================================
Steps to installation:

      0. You have to have a working model to use this scaffold. So create
         your model and setup validations, relations and other stuff.

      1. Add resource to routes.rb for example in case of `car` scaffold do:

           namespace :api, :defaults => {:format => :json} do
             namespace :v1 do
               resources :cars
             end
           end

      2. The Angularjs module of your resource should be added as an dependency
         to another Angularjs module. Add it by hand or if you want to view module
         in dashboard's main page add your resource to `config/initializers/faalis.rb`
         like this:

                config.dashboard_modules = {
                    :car => {
                       :icon => "fa fa-car",
                       :sidemenu => true,
                    },
                }

      3. Make sure that you have `api_controller.rb` in your `app/controllers` with this content:


              class APIController < Faalis::APIController
              end

Version data entries

49 entries across 30 versions & 1 rubygems

Version Path
faalis-0.18.0 lib/generators/faalis/templates/js_scaffold.README
faalis-0.18.0 lib/generators/faalis/templates/js/list_view/README
faalis-0.17.0 lib/generators/faalis/templates/js/list_view/README
faalis-0.17.0 lib/generators/faalis/templates/js_scaffold.README
faalis-0.16.3 lib/generators/faalis/templates/js_scaffold.README
faalis-0.16.1 lib/generators/faalis/templates/js_scaffold.README
faalis-0.16.0 lib/generators/faalis/templates/js_scaffold.README
faalis-0.15.1 lib/generators/faalis/templates/js_scaffold.README
faalis-0.15.0 lib/generators/faalis/templates/js_scaffold.README