New features, Nov 2009-Jan 2010

0 views
Skip to first unread message

Francis Hwang

unread,
Feb 4, 2010, 5:15:20 PM2/4/10
to admin_a...@googlegroups.com
Hey all, there are a few interface changes in the past few months:

= API CHANGE: *_from_form methods take three arguments now

The new argument (the 2nd) is record_params, which is the entire
params hash for the form POST.

= Multi-form creation

I've started adding alpha support for multi-form creation. If you set

a.form.multi = true

You'll have a tabular form that lets you create a bunch of records at
once. Validation errors will be shown on top of the individual row
that caused the error; and if any of the records has a validation
error, none of the records will be created. Note that this is alpha
and there are most likely edge cases I have not foreseen. Input on
this feature would be highly appreciated.

= Added index.search.include_params_in_form (thanks to Ned Campion)

index.search.include_params_in_form = true

This will put any custom page params in the search form to be posted
with the search parameters. You might use this if you've got another
way of filtering, say, blog posts by user, and you want the search
form on that page to only search within blog posts by that user.

As always, input on new features or API changes is appreciated.

Francis

Reply all
Reply to author
Forward
0 new messages