would it be possible to somehow create a select dropdown that automatically sends it to a specific action (I can use onchange => this.form.submit) but the problem is that every option will lead to a different method and action.
For example
Select option 1: Delete # This should redirect to a @post method: delete option 2: Do Something #this should redirect to do_something_posts method: get
basically each option should be able to do a different 'redirect to an action'
Thanks!
Aucun commentaire:
Enregistrer un commentaire