Created
September 24, 2023 17:34
-
-
Save jjn1056/675c5ce7318218a57c48c1f9f17c7a72 to your computer and use it in GitHub Desktop.
sketches for how form builder creates action urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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