=== Hobo 0.8.2 === Hobo models -- improvement to name-in-URL (#to_param) Added missing input for time fields Rapid forms -- added missing hours/minutes/seconds fields to datetime input Reorg of Hobo Rakefile, in preprartion for move to Shoulda Rapid -- fix to Echoe tasks -- adding workaround for developer-dependencies problem Rapid -- fixes to css class named that had '_' instead of '-' Rapid pages generators -- improvements to form submit button labels ModelController - set the provided key on the record *before* the view permission check during a lifecycle transition Hobo Models -- Model.user_find can now take a block to perform actions on the record prior to the permission check Added Rails dependency to hobofields gem Fix to Rails dependency - any Rails >= 2.1 is ok Reorganised generator tests Hobo users now have an #account_active? method. Used in two places: - This method rather than the return value of the block passed to hobo_login, is now used to figure out if an account is active when logging in. - After signing up, also log the user in iff account_active? is true. This is useful if there is a second step to signing up, such as email activation hobo_front_controller generator -- improved title of home page Rapid generators -- fix to owner link on new-for-owner page Fix to bug where validations were not happening during lifecycle creates/transitions === Hobo 0.8.1 === Fixes to generating and loading subsite controllers Add Rails routing monkey-patch to hobo generator Fixed deprecated use of ActiveSupport Dependencies module Migration generator -- fix to mysql limit problem in Rails 2.1.1 Migration generator -- fixed bug with validation of filename input by user New lifecycle semantics. Lifecycle create and transition actions (blocks) now run *after* the create or transition, and not at all if there are validation errors. To create a key, you can no longer call lifecycle.generate_key in the action, as the key timestamp will not be saved (record has already been saved) Instead pass :new_key => true as an option to the create or transition, and access it in the block using lifecycle.key Fix usage of 'skip' on hidden-fields tag; wasn't comma-splitting input. Correctly skip search field in table-plus search form. Fix to viewable_by? helper Partial fix #251 - add requirement that :id not be empty to resource routes Fix for #256, generating user model not named 'User' Maade request and app_name available by default New user model method account_active? Default implementation is state == 'active' but this method is intended as a hook that can be overridden as required. On signup, the user is only logged in if user has #account_active? Rapid generators -- fixes for form cancel links Rapid generators -- added parameter to show-page Fixes to in-place-editors Allow more advanced default ordering options like 'lower(users.last_name), lower(users.first_name)' Fixed typo in dryml-generator lifecycle pages show-page generator -- fix to test for create permission Rapid generators -- fix for show-page generator, when the 'owner' association that goes with the page's collection cannot be found === Hobo 0.8 === (There's a million changes in this release -- most of the fixes are *not* mentioned) Hobo now works with, and indeed requires, Rails 2.1 Hobo can now be used entirely from the gem, and need not be installed in vendor/plugins. To activate Hobo in this manner in an existing Rails app, just run the hobo generator. This will add the Hobo initializer to config/initializers. hobo command Now shows you what it's doing Renamed --create-dbs to --db-create to match the name of the rake task DRYML DRYML generators Hobo now provides a facility to generate DRYML tags on the fly using normal erb based templates. (the generators run when needed in development mode). The taglibs are written to taglibs/auto. Note that the generated tablibs are *not* intended to be modified, but rather should be imported and overridden in your application. Extending tags: The extend-with attribute is gone, instead we have the tag, e.g. instead of the rather confusing: we now have Also works with polymorphic tags, e.g. Polymorphic tags: new mechanism for defining polymorphic tags. ... "base" definition here ... ... in here you can call and it's not a recursive call but a call to the base definition ... "without" attributes: is a shorthand for . Doesn't sound like much but it's great. You'll like it. now respects the 'if' attribute Using 'with' and 'field' on a parameter works more sensibly now -- DRYML will never merge with attributes and field attributes New semantics for scoped variables. Scoped variables must be declared at the start of the scope. Assignments and reads always go back to the scope where that variable was declared. Fix to (i.e. one or more whitespace chars) being ignored Removed feature from add_classes helper that was converting all _ to -. Closes #11 param='x' now adds class='x' to the output. Closes #22. Doesn't add a css class if the param name is the same as the tag name, or is 'default' Fixes to errors when reporting syntax error : ) Now raises an error rather than outputting nonsensical name attributes on form inputs Removed incorrect leading '/' on template paths (e.g. in logs, stack traces) Fix -- was accepting close tags that are a prefix of the start tags, e.g. ... Rapid tag Library Rapid generators utilising the new DRYML generators feature. Pages, cards, forms, and the main navigation tag, are all generated now. New layout mechanism, and simplified tag. Together with the Clean theme, it is not very easy to create column based layouts. As a result, the "layout" attribute (to ) is gone, as are tags like . The standard tag now has just a parameter. Specific pages might add or themselves. As a result of the switch to generators and the simplified page-layout stuff, there's quite a lot of change in Rapid.
will include the flash messages at the top of the section *unless* they are rendered by a sub-section or have been rendered already Update forms with not render if the user doesn't have permission Removed