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',
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
2 matches
Mail list logo