Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
module problems
Ogre
5/23/2007 12:16:00 AM
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_colum...
. 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 -----
1 Answer
Dan Zwell
5/23/2007 6:44:00 AM
0
Welcome. You'll have more luck with rails questions here:
http://www.rubyonrails.com...
Many of us here don't use rails, as this in a general ruby language
mailing list. But good luck!
Dan
Ogre wrote:
> 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_colum...
. 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 -----
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
module problems
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password