0.0
No commit activity in last 3 years
No release in over 3 years
Include help text on a page based on its slug. Includes 1 simple tag and a basic content editor
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Wizard Of Awes¶ ↑

A simple snippet manager for creating and inserting snippets of HTML into your application for Rails 3.1+

Features¶ ↑

Simple¶ ↑

1 tag. 1 simple CRUD admin interface for managing snippets

Easy to use¶ ↑

Just install the gem and restart your server. You can then start adding and including snippets.

Supported versions¶ ↑

  • Ruby 1.8.7, 1.9.2, 1.9.3 (trunk)

  • Rails 3.1+ (edge)

Install¶ ↑

Put this line in your Gemfile:

gem 'wizard_of_awes'

Then bundle:

% bundle

Run the generator:

% rails g wizard_of_awes:install

Migration:

% bundle exec rake db:migrate

Usage¶ ↑

General configuration options¶ ↑

You can configure the following default values by overriding these values using WizardOfAwes.configure method.

helper_auth		# WizardOfAwes::HelperAuth by default
snippet_route_prefix	# 'woa-snippets' by default

Helper Options¶ ↑

  • woa_snippet

    <%= woa_snippet %>

    This would try and find a snippet with the key of the current page’s full path.

  • woa_snippet(key)

    <%= woa_snippet('my_key') %>

    This would try and find a snippet with the key of ‘my_key’.

Questions, Feedback¶ ↑

Feel free to message me on Github (agmattbrand) or Twitter (@agmattbrand)

Contributing to Wizard Of Awes¶ ↑

  • Fork, fix, then send me a pull request.

Copyright © 2011 Matt Brand.