# Acticve Record class in Module

**URL:** <https://www.ruby-forum.com/t/acticve-record-class-in-module/113256>\
**Category:** Rails\
**Created:** [August 29, 2007, 10:42am UTC](https://www.ruby-forum.com/t/acticve-record-class-in-module/113256 "2007-08-29T10:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshussain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Post date:** [August 29, 2007, 10:42am UTC](https://www.ruby-forum.com/t/acticve-record-class-in-module/113256/1 "2007-08-29T10:42:34Z")

</div>

Dear friends  
I have on problem  
actually i have one table called user\_details.  
i have one model for that table.For this table i want to do two  
different validations in the model,so i used modules but it is  
working,it just throwing an  
error like

:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:477:in  
`const_missing' #{RAILS_ROOT}/app/controllers/signin_controller.rb:235:in`newsletter\_form’

ok  
so i need your help  
how can i do the validations ?  
tell me  
ok  
bye

By  
P.S.Hussain

---

<div class="post-metadata">

**Author:** ![pshussain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Post date:** [August 29, 2007, 11:22am UTC](https://www.ruby-forum.com/t/acticve-record-class-in-module/113256/2 "2007-08-29T11:22:12Z")

</div>

Mohamed H. wrote:

> Dear friends  
> I have on problem  
> actually i have one table called user\_details.  
> i have one model for that table.For this table i want to do two  
> different validations in the model,so i used modules but it is  
> working,it just throwing an  
> error like
> 
> :/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:477:in  
> `const_missing' #{RAILS_ROOT}/app/controllers/signin_controller.rb:235:in`newsletter\_form’

you should paste some code if u need help - no one can blind guess a  
bug

;p
