-
Preventing tinyMCE 4 from inserting <br /> within <code> blocks.
Problem I was trying to hook in TinyMCE 4 as a editor that allows me to specify code blocks. However, in visual editing mode, <code> blocks ended up having embedded <br /> tags that displayed when rendered. There is an old plugin, Pre Element Fix, that may have done what I wanted it to do, but…
-
Filter chain halted as :find_page rendered or redirected in refinerycms
I ended up coming across this issue in Refinery CMS after switching databases. I had forgotten that I had swapped out databases because I had moved on to changing some other configuration bits in following the RailsCast for Refinery CMS. Fortunately, I found note on Refinery’s Getting Started page that deals with this: If you…
-
rails generate paperclip_database:migration getting protected method `migration_file_name’ error
Quick fix (put this in application.rb or similar in order to run the rails generate paperclip_databasee:migration command): module PaperclipDatabase module Generators class MigrationGenerator public :migration_file_name end end end There are two errors causing this error, one in paperclip and one in paperclip_database. Not sure what changes to Rails 4 caused this, but the issue is…