Hi, everyone!
I have a question. when I created a controller and a action like this:
class EverythingController < ApplicationController
def index
end
def findname
content="here is test"
render :text => content, :layout => false
end
..
end
in other controller's .rhtml, I used
<%= render_component :controller => "everything", :action =>
"findname" %>
so, Do I need create a template _findname.rhtml for findname action?
I don't think I need it, because I just render content, not anything.
but when I do function test, there is error: Misstemplate
_findname.rhtml
so I don't understand this error.
who can tell me why? and how can fix it, Thanks!
yes, I have looked this article.
but I just want to know If I used "render :text =>" to render
something view not whole page, Do I need create template?
Thanks!
but I just write
render :text => content
when I do function test, there is Error.
MissTemplate .... findname.rhtml
so I am not sure where is wrong.