Skip to content

Commit

Permalink
for some reason not having partial keyword is causing intermittent error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Feb 19, 2010
1 parent 904c505 commit 256c167
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controllers/admin_data/search_controller.rb
Expand Up @@ -61,7 +61,8 @@ def advance_search
if @success_message
render :json => {:success => @success_message }
else
render :file => "#{plugin_dir}/app/views/admin_data/search/search/_listing.html.erb", :locals => {:klass => @klass, :records => @records}
render :file => "#{plugin_dir}/app/views/admin_data/search/search/_listing.html.erb",
:locals => {:klass => @klass, :records => @records}
end
}
end
Expand Down
5 changes: 3 additions & 2 deletions app/views/admin_data/search/search/_listing.html.erb
@@ -1,5 +1,6 @@
<%= render 'admin_data/search/search/title', :records => records,
:total_num_of_children => @total_num_of_children %>
<%= render :partial => 'admin_data/search/search/title', :locals => {
:records => records,
:total_num_of_children => @total_num_of_children } %>

<div class="pagination">
<%= will_paginate @records, :container => false, :params => {:klass => klass.name} %>
Expand Down

0 comments on commit 256c167

Please sign in to comment.