Home > message_block_extensions

message_block_extensions

Message_block_extensions is a project mainly written in Ruby, based on the MIT license.

some helpers and personal defaults for message_block

== Message Block Extensions

This is an extraction of helpers that we've used for some EdgeCase projects that work with the message_block[http://github.com/railsgarden/message_block/tree/master] plugin. Mostly it provides alternative flash message keys that we typically use (:success, :notice, :warning, :error). It also includes some slight variations on the styles that come with message_block by default.

== Installation

script/plugin install git://github.com/adamlogic/message_block_extensions.git script/generate message_block_extensions

== Helper Methods

+flash_and_validation_messages+:: This wraps the call to +message_block+ with some alternative defaults. You'll normally want to stick this in a layout file. show_validation_errors_on(models):: Put this at the top of a view to specify which the models to show validation errors on when +flash_and_validation_messages+ is called.

Previous:drupal-exhibit