NAME

Rose::HTMLx::Form::DBIC - Module abstract (<= 44 characters) goes here

SYNOPSIS

use Rose::HTML::Form::DBIC qw(options_from_resultset init_with_dbic dbic_from_form );
use DvdForm;
use DBSchema;
.
.
.
$form = DvdForm->new;
options_from_resultset( $form, $schema->resultset( 'Dvd' ) );
$form->params( { ... } );
$form->init_fields();
if( $form->was_submitted ){
  if ( $form->validate ){ 
    dbic_from_form($form, $schema->resultset( 'Dvd' )->find(1));
  }
}
else {
  init_with_dbic($form, $schema->resultset( 'Dvd' )->find(1));
}

DESCRIPTION

This module exports functions integrating Rose::HTML::Form with DBIx::Class.

USAGE

options_from_resultset

Usage     : options_from_resultset( $form, $result_set )
Purpose   : loads options for SELECT boxes from database tables
Returns   :
Argument  : $form - Rose::HTML::Form, $result_set - DBIx::Class::ResultSet
Throws    : 
Comment   : 
          : 

BUGS

SUPPORT #rdbo at irc.perl.org

AUTHOR

Zbigniew Lukasiak
CPAN ID: ZBY
http://perlalchemy.blogspot.com

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

perl(1).