Skip to content

Instantly share code, notes, and snippets.

Evan Prothro eprothro

Block or report user

Report or block eprothro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7456345
def select2_select(option, opts={})
# same as foundation_select, but for select2
# boxes used throughout the staff app.
originating_select_name = opts[:from]
originating_select_id = find("select[name='#{originating_select_name}']")['id']
custom_select = find(".select2-container[id$='#{originating_select_id}']")
# click dropdown
# click option with correct text
You can’t perform that action at this time.