Hello,

disabling pagination causes an error in a controller which is sorted by
a foreign key. If the same controller is sorted (default or by hand) by
an other column (which is not a foreig key) everything is fine.


Error:
---------------
 Showing
 vendor/plugins/active_scaffold/frontends/default/views/_list_messages.html.erb
 where line #18 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?

Extracted source (around line #18):

15:                 }, :href => href %>
16:           <% end -%>
17:         </p>
18:         <p id="<%= empty_message_id %>" class="empty-message" <%= '
style="display:none;" ' unless @page.items.empty? %>> 
19:           <%= as_(active_scaffold_config.list.no_entries_message)%> 
20:         </p>
---------------

I think this is caused by the finder which reports an empty items-set
in the page-object.

Can I provide further information?


thx & greetings
Klaus

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to