# How to use link\_to method and :popup with ActiveRecord operation

**URL:** <https://www.ruby-forum.com/t/how-to-use-link-to-method-and-popup-with-activerecord-operation/174623>\
**Category:** Rails\
**Created:** [August 30, 2009, 4:42am UTC](https://www.ruby-forum.com/t/how-to-use-link-to-method-and-popup-with-activerecord-operation/174623 "2009-08-30T04:42:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@michael](https://www.ruby-forum.com/u/michael)\
**Post date:** [August 30, 2009, 4:42am UTC](https://www.ruby-forum.com/t/how-to-use-link-to-method-and-popup-with-activerecord-operation/174623/1 "2009-08-30T04:42:01Z")

</div>

I want users click the links on the webpage with some ActiveRecord  
operations(and the content of the link will be shown in a new  
window),for example when someone click a article title,a new window  
will be open to show the article,and some value of the author of the  
article will be added by 1.Please tell me how can I do that,thanks.
