WebRoaR + app without activerecord

3 views
Skip to first unread message

Danyal

unread,
Nov 26, 2010, 11:46:18 PM11/26/10
to WebROaR - Ruby Application Server
I am trying to create a rails 3 app without activerecord (I am using
simple_record instead). In application.rb, when I change require
'rails/all' to

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"

WebRoar can no longer restart my app and throws back and error related
to activerecord. Am I doing something wrong / what is the best
solution?

Dharmarth Shah

unread,
Nov 29, 2010, 4:34:52 AM11/29/10
to WebROaR - Ruby Application Server
Could you please paste the error trace?

Have you enabled the Analytics for that application? If so please try
to run after disabling it.

I created Rails 3 application which is not using ActiveRecord, and its
running fine.

Are you mistakenly using ActiveRecord in any model?

Thanks,
Dharmarth

Danyal

unread,
Nov 29, 2010, 10:56:55 PM11/29/10
to WebROaR - Ruby Application Server
Turning off analytics did the trick.

Danyal

unread,
Nov 29, 2010, 10:59:09 PM11/29/10
to WebROaR - Ruby Application Server
So in order to use analytics I must have ActiveRecord support? The
only reason this is annoying is because then it expects some type of
db such as mysql so I have to install that and require the gem.

Dharmarth Shah

unread,
Nov 30, 2010, 1:15:26 AM11/30/10
to WebROaR - Ruby Application Server
Currently we are supporting only ActiveRecord as ORM. Enabling
Analytics monkey patches ActionController and ActiveRecord for
instrumentation. I have committed a fix, which check for the
respective constant before instrumenting it. This should run
application even if Analytics is enabled, but would instruments only
available framework.

Please try running latest code for Analytics support without using
ActiveRecord.

Thanks,
Dharmarth

Danyal

unread,
Dec 10, 2010, 2:16:52 PM12/10/10
to WebROaR - Ruby Application Server
Great, thanks. I'll give it a shot.
Reply all
Reply to author
Forward
0 new messages