On 21 Jan 2008, at 18:48, Keynan Pratt wrote:
>
> 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
you should call super(method, *args) not super(method, args) (ie pass
the arguments, not an array of them)
Fred>
>
> 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
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---