Giter Club home page Giter Club logo

Comments (5)

nordringrayhide avatar nordringrayhide commented on August 17, 2024

it's not an issue of rails-footnotes.
Contact technical support of RubyMine

from rails-footnotes.

gamov avatar gamov commented on August 17, 2024

I believe it is a rails-footnotes issue, it pollutes the console with html links (RubyMine or not). Don't you think we should have an option to turn it off?

RubyMine is a quite popular Rails editor.

from rails-footnotes.

nordringrayhide avatar nordringrayhide commented on August 17, 2024

I dont know anything about RubyMine :-) It works fine on my Vim, but i can help you, I guess

you can initialize RailsFootnotes on your own.

https://github.com/josevalim/rails-footnotes/blob/master/lib/rails-footnotes.rb#L18

config/initializers/rails_footnotes.rb

require 'rails-footnotes/footnotes'
require 'rails-footnotes/backtracer' # comment or remove this line if you don't need backracer
require 'rails-footnotes/abstract_note'
require 'rails-footnotes/notes/all'

ActionController::Base.send(:include, RailsFootnotesExtension)

from rails-footnotes.

gamov avatar gamov commented on August 17, 2024

Will try your workaround, thanks!

What I mean is that logs in the console and the development.log shouldn't be formatted in html because their format is text (the browser format is html):

NameError (undefined local variable or method `re' for #<PurchaseContractsController:0x0000010413f3a8>):
  <a href="txmt://open?url=file:///Users/gamov/Projects/Teck Swee/ector/app/controllers/purchase_contracts_controller.rb&amp;line=17&amp;column=1">app/controllers/purchase_contracts_controller.rb:17:in `show'</a>

should stay in text mode like this:

app/controllers/purchase_contracts_controller.rb:17:in `show'

You should try RubyMine, it's awesome :)

from rails-footnotes.

gamov avatar gamov commented on August 17, 2024

Works great, thank you!
However, it would be cleaner to have an option in the rails-footnotes initializer to disable it there instead of editing the gem files...

from rails-footnotes.

Related Issues (20)

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.