qwker

Activity Graph

Page 1 of 1

2017-03-30

[12:08:48] qwker: has joined #RubyOnRails
[12:09:06] qwker: I'm trying to add a confirm popup on a link_to but it does not work. <%= link_to 'Request approval', send_approval_url, data: { confirm: "Request approval for #{@application.name}?" }, class: 'button small' %> Any tips?
[12:11:09] qwker: I basically want to show the confirm message before the it sends the user to `send_approval_url`
[12:13:31] qwker: @sidoniuns it does it's thing, sends the user to the URL. But I want to ask the user if he's "sure to open this url" etc. Currently it does not open the confirm popup
[12:14:08] qwker: No error in the JS console
[12:18:59] qwker: Ah, no. But I get couldn't find file 'jquery-ujs' if I do
[12:19:06] qwker: I have it in my Gemfile
[12:39:50] qwker: If I want to logout a user from it's session. Should it be delete '/logout', to: 'sessions#destroy', as: 'developer_logout' or destroy '/logout', to: 'sessions#destroy', as: 'developer_logout'?
[12:45:18] qwker: On what section did you find that?
[13:36:40] qwker: Ping timeout: 260 seconds