Quoting Michael Koziarski <[EMAIL PROTECTED]>: > >> I was recently on IRC and someone suggested that it was a feature for a >> template to be able to render, where no action exists. > > if you have a 'list.rhtml' template in app/views/foos/ then rails will > assume you wanted a list action in FoosController > >> If this is true, any way to control that feature? I would like to turn >> it off. > > No, but you could just make a private method called list. That > should hide it. >
That was my initial thought, however, it doesn't. What does work is to make the template a partial (using underscore). There were a few other suggestions in the chat as well. The other idea I liked was to create a method with the same name as the template and do a raise in it. I didn't test it, but that sounded like a good idea. Thanks for giving this some time. Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
