Wednesday, April 16, 2008

Merb Helpers

$ sudo gem install merb_helpers

This will get you the merb_helpers gem. This handy gem has the helpers I found really useful in Rails. Methods such as form_for, error_messages_for and the like are included in this gem.

Not all the methods are exactly the same as the Rails helpers. Take a look at the documentation for a list of available helpers.

Don't forget to add the dependencies line in your init.rb:
dependencies "merb_helpers"

I'll be posting more information on helpers as I use them. I don't like using too many helper methods, but what I do like I use a lot.

back to Merb index

0 comments: