Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Select-tag add link
<%= select_tag 'team_id', options_from_collection_for_select(@teams, "id", "name") %>
$('#team_id').bind('change', function () {
var url = "/Teamleader/" + $(this).val()
if (url) {
return false;
= select_tag :frame, options_for_select(get_frames, :id), class: 'chosen-select form-control', prompt: 'Çerçeve seçiniz'
$ ->
$('#frame').bind 'change', ->
url = '/admin/blocks?frame_id=' + $(this).val()
if url
window.location.replace url

This comment has been minimized.

Copy link
Owner Author

@leylaKapi leylaKapi commented Oct 2, 2017

You can select one method. Because above files solved same issue for select-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment