Most likely you have that content in your .rhtml files too
It seems that @content_for_layout will contain all the content include
the part before ,how can it happen? very thanks!
I had examined other rhtml file for times,but it does not exist at all…
I got the reason,but I still do not know how to resolve this problem.
It is because of my using pagination.
Here is the demands_controller:
@pages = Paginator.new self, Demand.count, 10, @params[:page]
@demands = Demand.find(:all, :order => ‘reply_times DESC’, :limit =>
10, :offset => @pages.current.offset)
Here is the index.rhtml:
<%= render_component :controller => ‘demands’, :action => ‘list’ %>
it is generated by the Ajaxscaffold.
if the url refers to : http://127.0.0.1:3000/demands or
then the above error will happen
if the url refers to : http://18.104.22.168:3000/demands/list
then everything is ok
Can anybody tell me the reason? very thanksful!