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/ anibalrojas@gmail.com
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 -- Posted with http://DevLists.com. Sign up and save your time!
On 2/7/06, An?bal Rojas <anibalrojas@gmail.com> 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
That''s it thank you! And sorry for myu english ;-) -- An?bal Rojas http://www.lacaraoscura.com/ anibalrojas@gmail.com On 2/7/06, James Ludlow <jamesludlow@gmail.com> wrote:> On 2/7/06, An?bal Rojas <anibalrojas@gmail.com> 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Reasonably Related Threads
- Windows, Segmentation Faults, config.load_paths and config.cache_classes
- Group a dinamic number of vectors in a data.frame
- Adding a parameter/path to the URL of a invocation to a XML-RPC call
- How to get database.yml configuration to use it in a rake taks
- ipfw2 docs for dinamic rules