how do i write action methods for partial views?
Posted
by ZX12R
on Stack Overflow
See other posts from Stack Overflow
or by ZX12R
Published on 2010-05-13T06:07:35Z
Indexed on
2010/05/13
6:14 UTC
Read the original article
Hit count: 245
ruby-on-rails
I rendering a view partially like this.
<%= render(:partial => "index" ,:controller=>"controller_name") %>
so this will partially render controller_name/_index.html.erb
here is my doubt. can i write an action method for this _index. something like this?
class ControllerNameController < ApplicationController
def _index
end
end
thanks.
© Stack Overflow or respective owner