Skip to content

ActiveRecord::StatementInvalid in Refinery/calendar/admin/events#index #29

@cheeby

Description

@cheeby

Hi,

I got this error when creating my first event:

ActionView::Template::Error (PG::Error: ERROR: non-integer constant in ORDER BY
LINE 1: ...ents".* FROM "refinery_calendar_events" ORDER BY 'from' DES...
^
: SELECT "refinery_calendar_events".* FROM "refinery_calendar_events" ORDER BY 'from' DESC LIMIT 20 OFFSET 0):
1:


    2: <%= render :partial => 'event', :collection => @events %>
    3:

4: <%= render '/refinery/admin/sortable_list',
5: :continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true %>
activerecord (3.2.8) lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in async_exec' activerecord (3.2.8) lib/active_record/connection_adapters/postgresql_adapter.rb:1158:inexec_no_cache'
activerecord (3.2.8) lib/active_record/connection_adapters/postgresql_adapter.rb:664:in block in exec_query' activerecord (3.2.8) lib/active_record/connection_adapters/abstract_adapter.rb:280:inblock in log'
activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in instrument' activerecord (3.2.8) lib/active_record/connection_adapters/abstract_adapter.rb:275:inlog'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions