Skip to content

Instantly share code, notes, and snippets.

@rafl
Created July 8, 2011 10:02
Show Gist options
  • Save rafl/1071497 to your computer and use it in GitHub Desktop.
Save rafl/1071497 to your computer and use it in GitHub Desktop.
$self->process_form($ctx, 'Scheduling::Waitlist' => {
available_locations => [$ctx->model('DB::Location')->all],
available_events => [$ctx->model('DB::Experience')->all],
init_object => {
location => $waitlist->location->id,
event => $waitlist->experience->id,
notes => $waitlist->note,
},
on_success => fun ($form) {
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment