Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Requesting information from user


  • Please log in to reply
1 reply to this topic

#1 Jorge

Jorge

    Passenger

  • Members
  • 3 posts

Posted 05 September 2013 - 01:31 PM

Hi,

 

I need to "popup" a message to the user in order he can choose an option. It is not a YES-NO option but almost the same (has has to choose among two options). It has to be a message with a question and two buttons.

 

Is that possible on Rails?

 

Thanks!

 

        Jorge



#2 Ohm

Ohm

    Guard

  • Members
  • 179 posts
  • LocationCopenhagen

Posted 05 September 2013 - 02:47 PM

Depends on what you want the YES-NO buttons to do.

 

If you just want a confirm, you can use the standard Rails link helper

<%= link_to "This page needs confirmation", some_link_path, confirm: "You must confirm to continue" %>

Blog: http://ohm.sh | Twitter: madsohm





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users