ActionController majic gone bad

Overriding method missing in ActionController destroys magic even when
passed back

ie.

def method_missing(method, *args)
if some_condition
do_something
else
#let rails handle it normally
super(method,args)
end
end

if I don’t over ride method missing then i can call a view without an
action
with the override i get a method missing error.

MAJIC

On 21 Jan 2008, at 18:48, Keynan P. wrote:

#let rails handle it normally
super(method,args)
end
end

you should call super(method, *args) not super(method, args) (ie pass
the arguments, not an array of them)

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs