Hobo 2.0.0.pre7

Posted by Bryan Larsen on 2012-12-06

We’re pleased to announce the availability of Hobo 2.0.0.pre7

renamed tags that shadow Rails helpers

Hobo tags and rails helpers exist in the same namespace. So if there is a tag with the same name as a helper, the helper becomes unavailable. Therefore we have renamed a couple of tags in Rapid that have the same names as existing rails helpers.

custom alternate formats

Hobo no longer executes an arity zero block passed to hobo controller actions inside of a respond_to block. This means that you can render formats other than html inside of an arity zero block.

hobo_show do
  render something if request.format.pdf?

Any formats that you do not render or redirect inside the block will be handled by hobo_show via respond_with.

If your block has a parameter, the block continues to be executed inside of a respond_to.

hobo_show do |format|
  format.pdf do { render something }

Because this is a respond_to block any formats you do not render will fall through and be handled by hobo_show’s respond_with block.

See this new section in the controllers manual for more information.

fixes for

  • using Hobo outside of Rails
  • hobo_user_model without a lifeycle
  • hobo_new was ignoring a preset @this
  • search and sort automatic scopes don’t crash on nil
  • precompile_taglibs
  • Spanish translation
  • added default first parameter for create_response