# Module problems

**URL:** <https://www.ruby-forum.com/t/module-problems/104831>\
**Category:** Ruby\
**Created:** [May 23, 2007, 2:20am UTC](https://www.ruby-forum.com/t/module-problems/104831 "2007-05-23T02:20:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ogre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ecb155/32.png) [@Ogre](https://www.ruby-forum.com/u/Ogre)\
**Post date:** [May 23, 2007, 2:20am UTC](https://www.ruby-forum.com/t/module-problems/104831/1 "2007-05-23T02:20:49Z")

</div>

I’m new at Ruby/Rails, so must have missed something obvious.

I’m trying to use the module “sortable\_column\_headers”, which I obtained  
from [https://svn.elctech.com/svn/public/sortable\_column\_headers/](https://svn.elctech.com/svn/public/sortable_column_headers/). When  
I try to load a view that uses this module, I get the following error.  
The line with “before\_filter” is this:

```
    before_filter :init_sortable_column_headers

```

I’m running ruby 1.8.4.

----- error dump begins -----  
NoMethodError

undefined method `before\_filter’ for Assignment:Class

RAILS\_ROOT: script/…/config/…

vendor/rails/activerecord/lib/active\_record/base.rb:1129:in  
`method_missing' vendor/plugins/sortable_column_headers/lib/sortable_column_headers.rb:9:in `included’  
vendor/plugins/sortable\_column\_headers/lib/sortable\_column\_headers.rb:7:in  
`included’  
#{RAILS\_ROOT}/app/models/assignment.rb:2  
app/controllers/assignment\_controller.rb:5

This error occured while loading the following files:  
script/…/config/…/app/controllers/assignment\_controller.rb  
assignment.rb

Request

flash: !map:ActionController::Flash::FlashHash {}

Response

Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}  
----- error dump ends -----

---

<div class="post-metadata">

**Author:** ![Ogre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ecb155/32.png) [@Ogre](https://www.ruby-forum.com/u/Ogre)\
**Post date:** [May 23, 2007, 8:45am UTC](https://www.ruby-forum.com/t/module-problems/104831/2 "2007-05-23T08:45:15Z")

</div>

Welcome. You’ll have more luck with rails questions here:

> **[Community](https://rubyonrails.org/community)**
>
> A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

Many of us here don’t use rails, as this in a general ruby language  
mailing list. But good luck!

Dan
