Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance of a Rails3 port? #1

Open
tatyree opened this issue Jul 22, 2010 · 10 comments
Open

Any chance of a Rails3 port? #1

tatyree opened this issue Jul 22, 2010 · 10 comments

Comments

@tatyree
Copy link

tatyree commented Jul 22, 2010

Right now, if you try to use query reviewer with Rails3, you get the following error:

uninitialized constant ActiveRecord::ConnectionAdapters::MysqlAdapter

@jpemberthy
Copy link

I'm getting:

undefined method 'perform_action' for class ActionController::Base (NameError)

controller_extensions.rb:10

@ariera
Copy link

ariera commented Oct 25, 2010

+1
I'd love to see a port of this useful plugin : )

In the meantime, does anybody knows of a plugin that helps counting the number of sql queries performed? That was useful!

Thanks!

@emoreth
Copy link

emoreth commented Nov 29, 2010

Ariera, you can try:

grep "select|update|delete" --count development.log

Grep is very usefull in these cases

@ariera
Copy link

ariera commented Nov 29, 2010

nice! Tanks for the advice emoreth!

@emoreth
Copy link

emoreth commented Nov 29, 2010

Be aware only that this will match "updated_at" columns and stuff like that.

For my logs i need to run grep "SELECT |UPDATE |DELETE " --count development.log

Using it without --count will help seeing if they are matching what you need.

@ehudros
Copy link

ehudros commented Dec 15, 2010

Here's a version that's at least semi working with rails 3:
https://github.com/jimneath/query_reviewer

@nesquena
Copy link
Collaborator

nesquena commented Apr 7, 2011

This was fixed in my fork (now merged with mainline)

@ehudros
Copy link

ehudros commented Apr 7, 2011

awesome, thanks :)

@plentz
Copy link

plentz commented Feb 25, 2012

@sadjow
Copy link

sadjow commented Aug 12, 2013

Rails 3 support: https://github.com/nesquena/query_reviewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants