[Rails] Re: custom REST action - template question

2008-12-14 Thread Petr Bobek
Pavel Krusek wrote: Hallo phorum, i have custom rest action. routes.rb: map.resources :schools, :collection = { :graduations = :get } SchoolsController: def graduations @schools = School.graduation(true) end link somewhere in navigation: %= link_to 'Schools with graduation',

[Rails] Re: custom REST action - template question

2008-12-14 Thread Pavel Krusek
Hi, i thought the template for concrete action 'graduations', no template for layout. Solution: def graduations @schools = School.graduation(true) render :action = index end I forgot direction 'render' ;) Thanks, Pavel Zdar :) 2008/12/14 Petr Bobek