I have javascript for Popup as POPUP.JS
In my view i want to use the popup
<%= link_to \"Start\" , answer_exam_group_answers_path(@exam_group), :clas
Rails 3 deprecated :popup
so it's best to write the popup JS yourself now. For the link you could do:
<%= link_to "Start" , answer_exam_group_answers_path(@exam_group), :class => "submit_button", :onclick => 'return openPopup(this);' %>
Then in your JS you would have this:
function openPopup(link)
{
link.hide();
window.open(link.href,'exam_dialog','toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no');
return false;
}