<%= @extensions.inspect %>
<% @extensions.each do |e| %>
| <%= e.context %> |
<%= e.exten %> |
<%= e.priority %> |
<%= e.app %> |
<%= e.appdata %> |
<% end %>
# Above is in the view
def list
@extensions = Extension.order(:context, :exten, :priority)
render
end
# Above is in the controller
The result is an empty table, and "nil" showing on the @extensions.inspect line in the view. But if I create a script to do the same as my list does, but dump to a file, it outputs fine.