G
G
Georgy Khromchenko2014-06-19 22:19:20
Ruby on Rails
Georgy Khromchenko, 2014-06-19 22:19:20

Ruby On Rails confirm with string input?

Are there any libraries/gem/ways to do confirm with string input? For example "Enter DELETE" if you agree?
Very reluctant to write.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Vsk, 2014-06-19
@viktorvsk

Perhaps you want to customize the default (javascript, not Rails) dialog boxes? Then choose any: https://www.google.com.ua/search?q=rails+ujs+confi... A gem
for one dialog box is somehow thick. Even for 2014

U
UIRobot, 2014-06-19
@UIRobot

Why gem? Maybe javascript will save you?

G
Georgy Khromchenko, 2018-04-27
@Mox

Looks like you need to use window.prompt (it's like alert, but with input)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question