Wiki is working wrong way.
Closed
Wiki is working wrong way.
Created by: afefelov
Hello,
When I gone to http://example.com/cs/crm/wikis/pages I've got 500.
Looking into logs found
Started GET "/cs/crm/wikis/pages" for 127.0.0.1 at 2012-12-23 23:53:23 +0600
Rendered wikis/pages.html.haml within layouts/project_resource (10.2ms)
ActionView::Template::Error (PG::Error: ERROR: column "wikis.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "wikis".* FROM "wikis" WHERE "wikis"."project_id" = ...
: SELECT "wikis".* FROM "wikis" WHERE "wikis"."project_id" = 18 GROUP BY slug ORDER BY created_at):
10: - @wikis.each_with_index do |wiki_page, i|
app/views/wikis/pages.html.haml:10:in `_app_views_wikis_pages_html_haml___226002480_107603930'
Looks like sql is not properly constructed for postgres.
Please register or sign in to reply