Restflection plugin

Plugin details

Restflection is a Ruby on Rails plugin designed for use in applications which followRESTful conventions. It allows you to extract information about resources without necessarily knowing what they are called.

Websitehttp://jonathanleighton.com/projects/restflection Repositoryhttp://svn.turnipspatch.com/public/restflection/ Author Jonathan Leighton Tags Rest LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.turnipspatch.com/public/restflection/

How Restflection exposes itself
=========================
Once installed, you can use Restflection from the controller or the view via the restflect method:

restflect(on)



Returns an instance of Restflection::ResourceReflection

on should be one of:
* :collection – reflects on the collection of resources
* :member – reflects on a single resource

Two convenience methods are also provided by the view:
* member – Returns the same as restflect(:member).it
* collection – Returns the same as restflect(:collection).it

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: hardway, 10 months ago