Displaying 1 result from an estimated 1 matches for "conferencecontrol".
2006 May 19
2
Help with using method_missing to create template path
...e a number of child pages for each conference (past
and future), but these pages are different for each conference (not same
child pages for each conference). The URLs are along the lines of:
/conference/2000/keynotes
/conference/2003/papers
Is it possible to have a method_missing in my ConferenceController that
will take the "2003" and "papers" bits of the URL and display
"/views/conference/2003/papers.rhtml"? I have added the following to my
routes.rb
map.connect ''conference/:year/:action'', :controller => ''conference''
b...