Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Template for creating Plugins/Engines for Noodall
tree: cf72450703

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
template.rb

README.md

Creating a New Noodall Component

Instructions for extracting/creating a Noodall component gem

Setup

Generate a new component/plugin template

  • rails plugin new noodall-component-<name> --full -Om https://raw.github.com/noodall/noodall-plugin-template/master/template.rb

This generates a Rails Engine and applies our customisations.

Process

  • Copy/create models in app/models

  • Copy/create views in app/views/admin/components and app/views/components

  • Setup slots for the new component under test/dummy/config/initializers/noodall.rb

  • Add new slots to test/dummy/app/models/content_page.rb

  • Add the new component slot to test/dummy/app/views/nodes/content_page.html.erb

  • Add cucumber tests and/or unit tests

  • Setup factories in /factories

  • Fill in the *.gemspec file

Something went wrong with that request. Please try again.