Take the value of a select_tag and put it into a variable

Asked

Viewed 115 times

0

I want to take the value of this select_tag and put it in the link_to message

<%= select_tag(:testee, options_for_select(CloneDatabaseController.find_all_models)) %>

<%= link_to('Click here', controller: 'clone_database', action: 'show', message: :testee) %>
  • You have to do it via Javascript, and your other question worked?

  • I don’t know kkkkk

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.