On May 11, 2:54 pm, andreacfm <acampolon...@gmail.com> wrote: > Hi, > > I am using a method_missing method into a controller. > I have a route that says: > > match ':controller/:action' > > What surprise me is that if a view that match the action name exists > method_missing is not invoked but rails happily render the view. > I was expecting that method_missing was going to be invoked if > declarated. > > Is that a normal behaviour? >
Yes - you don't need an empty method body if all you want to do is render a template (although you might consider it more readable code if there was an empty method body) Fred -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.