Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created September 24, 2023 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjn1056/675c5ce7318218a57c48c1f9f17c7a72 to your computer and use it in GitHub Desktop.
Save jjn1056/675c5ce7318218a57c48c1f9f17c7a72 to your computer and use it in GitHub Desktop.
sketches for how form builder creates action urls
form_for 'contact', +{
url=>sub($self, $contact) { $contact->in_storage ? path('create') : path('update', [$contact]) }
}, sub ($self, $fb, $contact) {
form_for 'contact', +{
create_url => sub($self, $contact) { path('create') },
update_url => sub($self, $contact) { path('update', [$contact]) },
}, sub ($self, $fb, $contact) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment