Dinamic controller


#1

Is it possible to make a Rails app respond to a “dinamic” controller?
As I understand method_missing can be used inside a controller to
respond to nonexisting methods, is it possible to provide a similar
behavior at a controller level? I am not sure at whic level would this
code be inserted…


Aníbal Rojas
http://www.lacaraoscura.com/
removed_email_address@domain.invalid


#2

On Tuesday, February 07, 2006, at 7:56 AM, Aníbal Rojas wrote:

Is it possible to make a Rails app respond to a “dinamic” controller?
As I understand method_missing can be used inside a controller to
respond to nonexisting methods, is it possible to provide a similar
behavior at a controller level? I am not sure at whic level would this
code be inserted…

Why would you need that??

Mikkel


#3

On 2/7/06, Aníbal Rojas removed_email_address@domain.invalid wrote:

Is it possible to make a Rails app respond to a “dinamic” controller?
As I understand method_missing can be used inside a controller to
respond to nonexisting methods, is it possible to provide a similar
behavior at a controller level? I am not sure at whic level would this
code be inserted…

“dynamic”

I think I understand your question. If so, let me know if this link
helps.

http://wiki.rubyonrails.org/rails/pages/HowToRouteGenericURLsToAController

– James


#4

That’s it thank you! And sorry for myu english :wink:


Aníbal Rojas
http://www.lacaraoscura.com/
removed_email_address@domain.invalid