# Report abuse and polymorphism

**URL:** <https://www.ruby-forum.com/t/report-abuse-and-polymorphism/142758>\
**Category:** Rails\
**Created:** [July 11, 2008, 3:56am UTC](https://www.ruby-forum.com/t/report-abuse-and-polymorphism/142758 "2008-07-11T03:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [July 11, 2008, 3:56am UTC](https://www.ruby-forum.com/t/report-abuse-and-polymorphism/142758/1 "2008-07-11T03:56:02Z")

</div>

Hello All,

i m trying to implement a report abuse system on my website; basically  
i want to be able to report anything, from suer profiles to user  
comments. So I guess I should use object\_id and object\_type to be able  
to refer to what the current user is reporting. My issue is that,  
being on a particular user profile i want to report,for example, I  
just need to click a report abuse button that would trigger a popup  
form to be completed and sent to the site admin, ie, me. I m planning  
to use hidden text fields to hold the current object\_id and  
object\_type of that thing i want to report to, but then how do I  
actually get the object id and object type from the ;ain page to my  
popup formula ?

Hope someone can help.

Regards,

Joel
