Giter Club home page Giter Club logo

rails-footnotes's Introduction

Rails 7 Footnotes

Rails footnotes displays footnotes in your application for easy debugging, such as sessions, request parameters, cookies, filter chain, routes, queries, etc.

Even more, it contains links to open files directly in your editor including your backtrace lines.

Installation

  1. Add to your Gemfile with bundle add rails-footnotes
  2. Run bundle install
  3. Generate the initializer with bin/rails generate rails_footnotes:install

This will create an initializer with default config and some examples.

Hooks

You can run blocks before and after footnotes are evaluated.

Footnotes.setup do |config|
  config.before do |controller, filter|
    filter.notes = (controller.class.name =~ /Message/ && controller.action_name == 'index' ? [:assigns] : [])
  end

  config.before do |controller, filter|
    filter.notes |= [:params] if controller.class.name =~ /Profile/ && controller.action_name == 'edit'
  end
end

Editor links

By default, files are linked to open in TextMate, but you can use any editor with a URL scheme. Here are some examples for other editors:

MacVim

In config/initializers/rails-footnotes.rb do:

f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d'

Here you need to choose a prefix compatible with your text editor. The %s is replaced by the name of the file, the first %d is replaced by the line number and the second %d is replaced by the column number.

Take note that the order in which the file name (%s), line number (%d) and column number (%d) appears is important. We assume that they appear in that order. "foo://line=%d&file=%s" (%d precedes %s) would throw out an error.

Sublime Text 3

Install subl, then use:

f.prefix = 'subl://open?url=file://%s&line=%d&column=%d'

Use with Docker, Vagrant, or other virtual machines

If you're running your app in a container or VM, you'll find that the edit links won't work because the paths point to the VM directory and not your native directory. To solve this, you can use a lambda for the prefix and modify the pathname accordingly.

For example,

f.prefix = ->(*args) do
  filename = args[0].sub '/docker', '/Users/name/projects/myproject'
  "subl://open?url=file://#{filename}&line=#{args[1]}&column=#{args[2]}"
end

replaces the VM directory /docker with the macOS directory containing the source code.

Footnotes Display Options

By default, footnotes are appended at the end of the page with default stylesheet. If you want to change their position, you can define a div with id "footnotes_holder" or define your own stylesheet by turning footnotes stylesheet off:

f.no_style = true

You can also lock the footnotes to the top of the window, hidden by default, and accessible via a small button fixed to the top-right of your browser:

f.lock_top_right = true

To set the font-size for the footnotes:

f.font_size = '13px'

Another option is to allow multiple notes to be opened at the same time:

f.multiple_notes = true

Finally, you can control which notes you want to show. The default are:

f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log]

Setting f.notes = [] will show none of the available notes, although the supporting CSS and JavaScript will still be included. To completely disable all rails-footnotes content on a page, include params[:footnotes] = 'false' in the request.

Creating your own notes

Creating your notes to integrate with Footnotes is easy.

  1. Create a Footnotes::Notes::YourExampleNote class
  2. Implement the necessary methods (check abstract_note.rb[link:lib/rails-footnotes/abstract_note.rb] file in lib/rails-footnotes)
  3. Append your example note in Footnotes::Filter.notes array (usually at the end of your environment file or in the initializer):

For example, to create a note that shows info about the user logged in your application you just have to do:

module Footnotes
  module Notes
    class CurrentUserNote < AbstractNote
      # This method always receives a controller
      #
      def initialize(controller)
        @current_user = controller.instance_variable_get("@current_user")
      end

      # Returns the title that represents this note.
      #
      def title
        "Current user: #{@current_user.name}"
      end

      # This Note is only valid if we actually found an user
      # If it's not valid, it won't be displayed
      #
      def valid?
        @current_user
      end

      # The fieldset content
      #
      def content
        escape(@current_user.inspect)
      end
    end
  end
end

Then put in your environment, add in your initializer:

f.notes += [:current_user]

Footnote position

By default the notes will be showed at the bottom of your page (appended just before </body>). If you'd like the footnote, to be at a different place (perhaps for aesthetical reasons) you can edit one of your views and add:

<div id="footnotes_holder"></div>

at an appropriate place, your notes will now appear inside div#footnotes_holder

Bugs and Feedback

If you discover any bugs, please open an issue. If you just want to give some positive feedback or drop a line, that's fine too!

rails-footnotes's People

Contributors

alce avatar coreymartella avatar dependabot[bot] avatar dergutemoritz avatar github-actions[bot] avatar ideasasylum avatar indirect avatar intrepidd avatar ivanoats avatar jasnow avatar josevalim avatar joshuapaling avatar kbrock avatar kostyadubinin avatar kristopher avatar kyuden avatar lsylvester avatar mperham avatar nordringrayhide avatar ordinaryzelig avatar philipnery avatar pmatsinopoulos avatar rootlch avatar rrosenblum avatar scorpio avatar sjweil9 avatar tapajos avatar tobias avatar unixmonkey avatar westonplatter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rails-footnotes's Issues

Queries should show

The latest gem release 3.6.4 always shows 0 queries and a blank query log.

Incorrectly links to Rails 3.1 assets

In Rails 3.1, with the asset pipeline enabled, links to edit assets point to the route from where they're served instead of their actual location in app/assets.

Really slow in Rails3.1 development

I just upgrade Rails from 3.0.10 to 3.1.3.But seems rails-footnotes make my app terrible slow.
The log shows one page costs 2minutes, but the render and AR time is very small.
If I remove the rails-footnotes, everything is ok.
I try to get more clue from log, but just found the development log was halt between rendering view and request assets.

turn off for particular controllers?

Is there a way to turn rails-footnotes off for a particular controller? I'm fairly certain ENABLE_RAILS_FOOTNOTES won't help with this, right?

Thanks for a great project!

John

Invalid byte sequence

Boy... this interface really sucks. Anyhow, here is the error message and a snippet of the stack. I'm using josevalim-rails-footnotes-3.6.2

Footnotes #Footnotes::Notes::LogNote:0x00000106f319a0Note Exception: invalid byte sequence in US-ASCII

rails-footnotes/notes/log_note.rb:27:in `gsub'

rails-footnotes/notes/log_note.rb:27:in `log_tail'

rails-footnotes/notes/log_note.rb:11:in `content'

rails-footnotes/footnotes.rb:272:in `block in fieldsets'

rails-footnotes/footnotes.rb:64:in `block in each_with_rescue'

rails-footnotes/footnotes.rb:62:in `each'

rails-footnotes/footnotes.rb:62:in `each_with_rescue'

error on rendering

Hi,
there are exception on rendering:

Footnotes LayoutNote Exception: undefined method `_pick_template' for #ActionView::Base:0x262b324

/Users/alec/Documents/Projects/Workspaces/my projects/my_id/vendor/plugins/rails-footnotes/lib/notes/layout_note.rb:25:in `send'

/Users/alec/Documents/Projects/Workspaces/my projects/my_id/vendor/plugins/rails-footnotes/lib/notes/layout_note.rb:25:in `layout_template'

/Users/alec/Documents/Projects/Workspaces/my projects/my_id/vendor/plugins/rails-footnotes/lib/notes/layout_note.rb:20:in `valid?'

maybe this plugin have any prerequisites?

Footnotes included twice

When i enable
config.gem 'josevalim-rails-footnotes', :lib => 'rails-footnotes', :source => 'http://gems.github.com'
in development.rb it seems to be called twice - the output page has the block twice.

I am brand new to ruby & rails otherwise I would debug & propose a fix.

Thanks

Generating excessive queries with SQL Server Relationships

I can't say what all this affects, however my app is using activerecord-sqlserver-adapter and tiny_tds to connect to a SQL Server 2008 Database. I have been beating my head against the wall as when I do a simple query such as:

@users = Users.limit(25).includes([:addresses])

the request takes over a minute and rails footnotes indicates there are 300 and some queries being run, most of which are:

SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' ORDER BY TABLE_NAME

This query is run over and over again hundreds of times. This confused me thoroughly as it DID NOT do this from the console, and the development.log reflected nothing of those queries.

Then finally it dawned on me. I removed rails footnotes and the page now loads almost instantly without all those queries. Not sure what is up here, however it is definitely footnotes causing those to be run. In addition it also seems to only affect queries with .includes, if I remove the includes things work normally.

I am using:

rails-footnotes (3.7.5)
activerecord (3.1.1)
activerecord-sqlserver-adapter (3.1.1)
tiny_tds (0.4.5)
freetds (0.9.1)

I know not a lot of people use sql server with rails, and this is a legacy database with non-conventional column names, so I'm happy to provide whatever environment information or debugging I can do to help.

footer appended to pages that render :text

i'm getting the footer in pages that render encrypted xml for communication with flash. is there any functionality to not render the footer for text, xml, json etc?

i'm using the gem: rails-footnotes (3.6.5)

undefined method `symbolize_keys'

I receive the following on every page load although the page does actually render and the footnotes display.

Footnotes Footnotes::Notes::SessionNoteNote Exception: undefined method `symbolize_keys' for #CGI::Session:0x24c3a54

I'm running Rails 2.3.4

Escaped HTML when rendering the tables (Queries (NN) DB)

In
rails-footnotes/notes/abstract_note.rb: hash_to_xml_attributes
is feeded with key/value which has HTML and the table is rendered broken

I have quick patch it by gsub-ing the html but it is better to not pass HTML-lized keys/values to hash_to_xml_attributes

this is the new line 173:
newstring << "#{key.to_s.gsub(/</?[^>]>/, "")}="#{value.gsub('"','"').gsub(/</?[^>]>/, "")}" "

Invalid HTML

Footnotes renders empty "tbody" or "div" when a note is empty.
And by the way, thanks for this great plugin!

Deprecation warning in log: SessionHash#data has been deprecated

Here is text of that warning:

DEPRECATION WARNING: ActionController::Session::AbstractStore::SessionHash#data has been deprecated. Please use #to_hash instead.. (called from initialize at /opt/local/lib/ruby/gems/1.8/gems/rails-footnotes-3.6.5/lib/rails-footnotes/notes/session_note.rb:7)

I think it will be simple to fix.

PS. Rails 2.3.5

Had error during switch to bundler

Hello i had this error in v3.6.6
after includeing this line
require "#{File.dirname(FILE)}/log_note"
in partials_note.rb file error gone

sorry for bad English

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant Footnotes::Notes::LogNote (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing'
from /home/woto/.bundle/ruby/1.8/gems/rails-footnotes-3.6.6/lib/rails-footnotes/notes/partials_note.rb:3
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /home/woto/.bundle/ruby/1.8/gems/rails-footnotes-3.6.6/lib/rails-footnotes.rb:9
from /home/woto/.bundle/ruby/1.8/gems/rails-footnotes-3.6.6/lib/rails-footnotes.rb:8:in `each'
from /home/woto/.bundle/ruby/1.8/gems/rails-footnotes-3.6.6/lib/rails-footnotes.rb:8
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:46:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:46:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:41:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:41:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:40:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:40:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler.rb:89:in `require'
from /home/woto/rails/blog/config/boot.rb:115:in `load_gems'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:164:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from /home/woto/rails/blog/config/environment.rb:9
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:84
from script/server:3:in `require'
from script/server:3

Extreme memory use

After just a few page loads, any application I have that uses this gem will be using far more memory than it should be. Removing the the reference to the rails-footnotes gem causes the memory usage to stay sane.

Here is the output of ps aux for the script/server instance after startup, 1 request, and 5 requests.

With rails-footnotes

USER       PID %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
jqr      70414   0.3  1.1   121752  47372 s003  S+    8:23PM   0:03.16 ruby ./script/server  # after startup
jqr      70414   0.2 17.6   813248 738492 s003  S+    8:23PM   0:06.90 ruby ./script/server  # after 1st request
jqr      70414   0.3 18.1   835816 761180 s003  S+    8:23PM   0:21.53 ruby ./script/server  # after 5th request

Without rails-footnotes

USER       PID %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
jqr      70605   0.3  0.8   109816  35436 s003  S+    8:30PM   0:02.68 ruby ./script/server  # after startup
jqr      70605   0.3  1.3   127536  52916 s003  S+    8:30PM   0:03.56 ruby ./script/server  # after 1st request
jqr      70605   0.3  1.3   129408  54904 s003  S+    8:30PM   0:08.17 ruby ./script/server  # after 5th request

I'm running the latest gem josevalim-rails-footnotes from github.

There seem to be other reports of this issue: http://github.com/drnic/rails-footnotes/commit/68fddf407ba2f2abf493d6c43be481cd0a9a01b9

JRuby undefined method `execute' for class `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter' (NameError)

I'm getting the following error :

nikosd@vincent:(master)$ rails server
=> Booting Mongrel
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:146:in `included': undefined method `execute' for class `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter' (NameError)
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:145:in `class_eval'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:145:in `included'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:75:in `load'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:72:in `each'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:72:in `load'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:187
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/bundler/gems/rails-footnotes-5b21e35bef36/lib/rails-footnotes/notes/queries_note.rb:239:in `require'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'
     ... 29 levels...
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /Users/nikosd/.rvm/gems/jruby-1.5.6/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'
    from /Users/nikosd/Work////config.ru:3

Untitled

=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method': undefined method `execute' for class `ActiveRecord::ConnectionAdapters::MysqlAdapter' (NameError)
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:124:in `included'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:123:in `class_eval'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:123:in `included'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:170:in `include'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:170:in `send'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:170
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:167:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes/notes/queries_note.rb:167
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
    from /opt/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes.rb:9
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes.rb:8:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib/rails-footnotes.rb:8
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
    from /opt/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in `load'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:167:in `process'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
    from /Users/jonas/Development/projects/starter_app/config/environment.rb:11
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from script/server:3

Don't know what happened lately, not because of Rails 2.3.4 for sure. Sherlock? =) I tested to install mysql gem 2.7.0 and 2.8.1, but the funny part is that I don't even use MySQL in my app so this should not even be a problem in the first place?

running thin server

Just came across this great gem.
Could not get it to work. After scratching my mind for sometime it seems it worked only when using teh webrick.
Does it work under thin as well?

Showing Assigns - @_view_renderer @_env

Rails 3.1
Footontes 3.7.5.rc4

If I view "Assigns" for my app, I get an explosion of data- thousands of lines long of json for the varialbes @_env and @_view_renderer

Do you have any idea why that would be?

RpmNoteNote calling undefined transaction_sampler method

The newrelic rpm note code is calling a non-existent method called transaction_sampler on the NewRelic::Agent::Agent instance. This exception error is repeated in the log with every request.

I am using the latest version of the newrelic_rpm gem, 2.8.11.

Footnotes Footnotes::Notes::RpmNoteNote Exception: undefined method `transaction_sampler' for #
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/notes/rpm_note.rb:7:in `initialize'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:133:in `new'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:133:in `initialize_notes!'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:64:in `each_with_rescue'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:62:in `each'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:62:in `each_with_rescue'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:335:in `each_with_rescue'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:132:in `initialize_notes!'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:126:in `add_footnotes_without_validation!'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:104:in `add_footnotes!'
/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.0/lib/rails-footnotes/footnotes.rb:39:in `after'

not working on rails 3.0.7 ?

I'm trying to install rails-footnotes

Rails version: 3.0.7

In Gemfile:
gem 'rails-footnotes', '>= 3.7', :group => :development

Bundle install working properly, showing line:
Using rails-footnotes (3.7.4)

When I start my server with "rails s", I can't see any footnotes in my application
I tried to add a div #footnotes_holder in the layout. But it stays empty.

If I add the line " Footnotes::Filter.prefix = 'mvim://open?url=file://%s&line=%d&column=%d'" in development.rb, I get an error, server won't start:

/home/daniel/.gems/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing': uninitialized constant Footnotes::Filter (NameError)

Any idea ?
Thank you

ruby19 issue: using String#to_a

Sorry, feeling lazy, just want to report this bug:

Footnotes #<Footnotes::Notes::ControllerNote:0x25ea2c0>Note Exception: undefined method `to_a' for #<String:0x25b8f54>
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/notes/controller_note.rb:54:in `lines_from_index'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/notes/controller_note.rb:48:in `controller_line_number'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/notes/controller_note.rb:15:in `link'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:305:in `link_helper'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:252:in `block in links'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:64:in `block in each_with_rescue'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:62:in `each'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:62:in `each_with_rescue'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:335:in `each_with_rescue'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:250:in `links'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:190:in `insert_footnotes'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:128:in `add_footnotes_without_validation!'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:104:in `add_footnotes!'
/Users/drnic/Sites/pharmmd/vendor/plugins/rails-footnotes/lib/rails-footnotes/footnotes.rb:39:in `after'

README version spec out of sync with asking to run generator

$ rails g rails_footnotes:install
Could not find generator rails_footnotes:install.
Rails 3.x

gem 'rails-footnotes', '>= 3.7', :group => :development
After you install RailsFootnotes and add it to your Gemfile, you need to run the generator:

rails generate rails_footnotes:install

The generator is only coming in 3.7.5 so I suggest the version spec be changed to something like >= 3.7.5.rc3

sessions and cookies get clobbered

I'm running rails 3.0.5 and rails-footnotes 3.7.2 and I'm finding that sometimes my cookies and session hashes are not available to me. Instead cookies and session are both empty hashes.

I haven't been able to dig in to this any further, but I wanted to post this in case anyone else is having the same problem. Maybe I'm the only one and it's specific to my setup ? Who knows ? Not me.

Luke

Uninitialized constant Footnotes::Notes::LogNote (NameError)

I get this error when trying to install rails-footnotes in my app.

I'm using ruby version 1.9.2 with the following gems

gem 'rails', '3.0.7'
gem 'haml'
gem 'devise'
gem 'oauth2'
gem 'faker'
gem 'will_paginate', '3.0.pre2'
gem 'jquery-rails'
gem 'delayed_job'
gem 'bcrypt-ruby'
gem 'pg', '0.9.0'
gem 'hoptoad_notifier'
gem 'hominid'
gem 'rack-ssl'
gem 'meta_where'

group :development do
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'rspec-rails', '2.0.1'
gem 'factory_girl_rails', '1.0'
gem 'ruby-debug19'
gem 'heroku'
gem 'rails-footnotes', '>= 3.7'
end

group :test do
gem 'rspec-rails', '2.0.1'
gem 'rspec', '2.0.1'
gem 'factory_girl_rails', '1.0'
gem 'ruby-debug19'
gem 'spork', '0.9.0.rc7'
gem 'ZenTest'
end

Failing tests

Not sure if anybody is aware of it, there are two failing tests for me in the master branch

  1. Footnotes::Notes::AssignsNote
    Failure/Error: specify {note.send(:assigns).should eql [:@action_has_layout, :@view_context_class, :@_status] }
   expected [:@action_has_layout, :@view_context_class, :@_status]
        got [:@_routes, :@_view_context_class]

   (compared using eql?)

   Diff:
   @@ -1,2 +1,2 @@
   -[:@action_has_layout, :@view_context_class, :@_status]
   +[:@_routes, :@_view_context_class]
 # ./spec/notes/assigns_note_spec.rb:18:in `block (2 levels) in <top (required)>'
  1. Footnotes::Notes::AssignsNote title
    Failure/Error: its(:title) {should eql 'Assigns (3)'}
   expected "Assigns (3)"
        got "Assigns (2)"

   (compared using eql?)
 # ./spec/notes/assigns_note_spec.rb:17:in `block (2 levels) in <top (required)>'

When displaying a page that makes no queries, rails-footnotes reports 300 queries

I have a page that makes no queries but rails-footnotes is displaying 300 queries. I added a query to it and it reports it at the top (it went to 302 queries). I'm using PostgreSQL 9.0, Rails 3.1rc6 and Ruby 1.9.2. Or maybe Rails is running 300 queries per page? :P

UNKNOWN (trace)
BEGIN
SQL (0.000ms) 
UNKNOWN (trace)
COMMIT
SQL (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT DISTINCT(attr.attname) FROM pg_attribute attr INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] WHERE cons.contype = 'p' AND dep.refobjid = $1::regclass
SCHEMA (0.001ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT DISTINCT(attr.attname) FROM pg_attribute attr INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] WHERE cons.contype = 'p' AND dep.refobjid = $1::regclass
SCHEMA (0.002ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.001ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.001ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.004ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.001ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.001ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 
UNKNOWN (trace)
SELECT COUNT(*) FROM pg_tables WHERE tablename = $1
SCHEMA (0.000ms) 

gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/log_subscriber.rb:93:in `call'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/fanout.rb:47:in `publish'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/fanout.rb:25:in `block in publish'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/fanout.rb:25:in `each'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/fanout.rb:25:in `publish'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/instrumenter.rb:26:in `ensure in instrument'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/instrumenter.rb:26:in `instrument'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/connection_adapters/abstract_adapter.rb:239:in `log'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `exec_query'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/connection_adapters/postgresql_adapter.rb:679:in `table_exists?'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/base.rb:701:in `table_exists?'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/base.rb:836:in `inspect'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route.rb:123:in `inspect'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route.rb:123:in `inspect'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route.rb:123:in `inspect'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route.rb:123:in `inspect'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route.rb:123:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `inspect'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:54:in `assigned_value'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:35:in `block in content'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:34:in `each'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/assigns_note.rb:34:in `content'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:290:in `block in fieldsets'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:62:in `block in each_with_rescue'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:60:in `each'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:60:in `each_with_rescue'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:355:in `each_with_rescue'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:285:in `fieldsets'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:202:in `insert_footnotes'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:127:in `add_footnotes_without_validation!'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:102:in `add_footnotes!'
gems/ruby/1.9.1/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:14:in `filter'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:313:in `after'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:302:in `_callback_after_11'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:427:in `_run__1354797155311862010__process_action__2174578386261193837__callbacks'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:81:in `run_callbacks'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/abstract_controller/callbacks.rb:17:in `process_action'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal/rescue.rb:17:in `process_action'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications.rb:53:in `block in instrument'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/notifications.rb:53:in `instrument'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal/params_wrapper.rb:202:in `process_action'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/abstract_controller/base.rb:121:in `process'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/abstract_controller/rendering.rb:45:in `process'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal.rb:193:in `dispatch'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_controller/metal.rb:236:in `block in action'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/routing/route_set.rb:65:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/routing/route_set.rb:29:in `call'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route_set.rb:152:in `block in call'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/code_generation.rb:96:in `block in recognize'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/code_generation.rb:82:in `optimized_each'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/code_generation.rb:95:in `recognize'
gems/ruby/1.9.1/gems/rack-mount-0.8.2/lib/rack/mount/route_set.rb:141:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/routing/route_set.rb:531:in `call'
gems/ruby/1.9.1/gems/sass-3.1.7/lib/sass/plugin/rack.rb:54:in `call'
gems/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:35:in `block in call'
gems/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:34:in `catch'
gems/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:34:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/etag.rb:23:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/conditionalget.rb:25:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/head.rb:14:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/flash.rb:243:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/session/abstract/id.rb:195:in `context'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/session/abstract/id.rb:190:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/cookies.rb:326:in `call'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/query_cache.rb:62:in `call'
gems/ruby/1.9.1/gems/activerecord-3.1.0.rc6/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:401:in `_run_call_callbacks'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/callbacks.rb:81:in `run_callbacks'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/reloader.rb:68:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/sendfile.rb:101:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
gems/ruby/1.9.1/gems/railties-3.1.0.rc6/lib/rails/rack/logger.rb:13:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/methodoverride.rb:24:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/runtime.rb:17:in `call'
gems/ruby/1.9.1/gems/activesupport-3.1.0.rc6/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/lock.rb:15:in `call'
gems/ruby/1.9.1/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/static.rb:53:in `call'
gems/ruby/1.9.1/gems/railties-3.1.0.rc6/lib/rails/engine.rb:455:in `call'
gems/ruby/1.9.1/gems/railties-3.1.0.rc6/lib/rails/rack/content_length.rb:16:in `call'
gems/ruby/1.9.1/gems/railties-3.1.0.rc6/lib/rails/rack/log_tailer.rb:14:in `call'
gems/ruby/1.9.1/gems/rack-1.3.2/lib/rack/handler/webrick.rb:59:in `service'

SQL queries run very slow after the 20th one

Ran into this problem on my own app, and found some more info on Google. The exact same type of query takes way longer just going from the 20th to the 21st query.

SELECT (explain | trace)
Timesheet Load (0.000952s)
SELECT timesheets.id FROM timesheets WHERE (timesheets.start_date = '2010-01-17 17:00:00' AND timesheets.employee_id = 35) LIMIT 1

SELECT (explain | trace)
Timesheet Load (0.257136s)
SELECT timesheets.id FROM timesheets WHERE (timesheets.start_date = '2010-01-17 17:00:00' AND timesheets.employee_id = 2) LIMIT 1

See this thread from rubyonrails-tak by Frederick Cheung, you may want to jump up the thread to see the discussion's context: http://www.mail-archive.com/[email protected]/msg47661.html

Cookies being deleted on next request

I was actually using indirect's fork for rails 3 compatibility, so I'm mainly just putting this here to prevent someone else from wasting a ton of time on it like I did. It seems with rails-footnotes enabled, cookies are being deleted on the next request. I'm not really sure where or how, but this wasted enough of my time where I'm done with rails-footnotes for now.

Fails to produce edit pages with controllers produced from gems

I am using the thoughtbot clearance gem which provides some contollers for authentication. Footnotes fails to produce the edit link for the controller with the following error in the log

Footnotes #Footnotes::Notes::ControllerNote:0xb72e8e2cNote Exception: No such file or directory - /home/f0/anthony/rails/test_clearance_template/app/controllers/clearance/sessions_controller.rb

However it does work for the views e.g the link for the new session page
txmt://open?url=file:///usr/lib/ruby/gems/1.8/gems/thoughtbot-clearance-0.6.6/app/views/sessions/new.html.erb&line=1&column=1

Note the path is pointing to the system gem folder

"Note Exception: File not found" - when the controller is in different folder

Hello,
I have moved a lot of my controllers in separate folder by adding this in environment.rb

config.load_paths += %W(
#{RAILS_ROOT}/app/controllers/admin/nomenclature
)

but then the rails-footnotes can't manage to find the controller

in lib/rails-footnotes/notes/controller_note.rb on ActionController::Routing.controller_paths line 30

to fix this I have to add this in environment.rb

ActionController::Routing.controller_paths << "#{RAILS_ROOT}/app/controllers/admin/nomenclature"

I am writting this just to save time for someone else or to help you improve this code block

10x for the nice gem!

No output appended to pages in development

I just installed rails-footnotes by adding the following to my Rails 3.0.10 Gemfile on Mac OS 10.7.1. For example,

gem "rails-footnotes", "~> 3.7.4"

However, I'm not seeing any output being appended to my pages in development. BTW, I'm using all the provided defaults without any modifications.

New backtracer breaks Rubymine 'go to source' feature

Prior rf 3.7.4, the RubyMine console was showing:

app/controllers/companies_controller.rb:40:in `show'

which we could 'click to source'

From 3.7.4, it becomes

<a href="txmt://open?url=file:///Users/gamov/Projects/Teck Swee/ector/app/controllers/companies_controller.rb&amp;line=40&amp;column=1">app/controllers/companies_controller.rb:40:in `show'</a>

which is great in the browser but breaks the essential 'click to source' in the IDE. It would be great to have the link tag in the browser but NOT in the console to have the best of both worlds but if it's not trivial, it would be great to have a setting to deactivate it completely.

I love the DB silencer.

Regards,
Gam.

PS: I tried to no avail to make the link open in RubyMine

Footnotes::Notes::ControllerNote Exception: can't convert nil into String on ActiveAdmin pages

Started GET "/admin/login" for 127.0.0.1 at 2012-01-11 10:50:46 +0300
  Processing by ActiveAdmin::Devise::SessionsController#new as HTML
DEPRECATION WARNING: Formtastic::SemanticFormBuilder has been deprecated in favor of Formtastic::FormBuilder. (called from realtime at /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295)
DEPRECATION WARNING: Formtastic::SemanticFormBuilder has been deprecated in favor of Formtastic::FormBuilder. (called from realtime at /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295)
Rendered /home/user/.rvm/gems/ruby-1.9.3-p0/gems/devise-1.5.3/app/views/devise/shared/_links.erb (0.6ms)
Rendered /home/user/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.3.0/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (20.4ms)
Footnotes Footnotes::Notes::ControllerNote Exception: can't convert nil into String
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/notes/controller_note.rb:17:in `exists?'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/notes/controller_note.rb:17:in `valid?'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:133:in `block in initialize_notes!'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:62:in `block in each_with_rescue'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:60:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:60:in `each_with_rescue'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:355:in `each_with_rescue'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:131:in `initialize_notes!'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:125:in `add_footnotes_without_validation!'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:102:in `add_footnotes!'
/home/user/.rvm/gems/ruby-1.9.3-p0/gems/rails-footnotes-3.7.5/lib/rails-footnotes/footnotes.rb:14:in `filter'

rails-footnotes can cause a hang

I was only able to get a trace back. For one particular big test, my log grows to 3M. On this test, the ruby process jumps to 100% cpu and hangs. I attached to the process using gdb and did a rb_backtrace(). I am not sure if this will help much. Its probably not a high priority item.

    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/notes/log_note.rb:28:in `rindex'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/notes/log_note.rb:28:in `log'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/notes/partials_note.rb:33:in `partials'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/notes/partials_note.rb:17:in `content'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:279:in `block in fieldsets'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:64:in `block in each_with_rescue'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:62:in `each'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:62:in `each_with_rescue'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:342:in `each_with_rescue'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:274:in `fieldsets'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:191:in `insert_footnotes'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:130:in `add_footnotes_without_validation!'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:104:in `add_footnotes!'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/rails-footnotes-3.6.7/lib/rails-footnotes/footnotes.rb:39:in `after'
    from /usr/local/rvm/gems/ruby-1.9.1-p378@raptor/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:185:in `evaluate_method'

undefined method `symbolize_keys' for #<ActionDispatch::Cookies::CookieJar:0x00000104f717f0>

Running 3.7.4 on a recently upgraded 3.1rc4 app. Seeing:

Footnotes Footnotes::Notes::CookiesNote Exception: undefined method `symbolize_keys' for #<ActionDispatch::Cookies::CookieJar:0x00000104f717f0>
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/notes/cookies_note.rb:5:in `initialize'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:132:in `new'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:132:in `block in initialize_notes!'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:62:in `block in each_with_rescue'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:60:in `each'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:60:in `each_with_rescue'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:355:in `each_with_rescue'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:131:in `initialize_notes!'
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/rails-footnotes-3.7.4/lib/rails-footnotes/footnotes.rb:125:in `add_footnotes_without_validation!'

Query times are off by x/1000

For example, Rails log shows my ActiveRecord query times (over a slow network to a remote host) is 1042.2ms, but rails -footer reports query times 1.042ms. And when expanded to see the individual queries, they, also, have been incorrectly divided by 1000.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.