Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

default values in text columns are wrapped in quotes

#1525

Hello,

when I provide default values for text columns in migrations they are wrapped in quotes.


default_pages_body = %q{
<div id="top">

<navigation />
h1. Untitled

</div>

<div id="middle">
</div>
}.strip.freeze

create_table :pages do |t|
  t.string :path, :null => false
  t.text :body, :null => false, :default => DEFAULT_PAGES_BODY
  t.string :title, :null => false
  t.timestamps
end

When I use the form tag helper with a textarea tag I get the following content.


'<div id="top">

<navigation />
h1. Untitled

</div>

<div id="middle">
</div>'

Environment: Rails 2.2, sqlite3-ruby, rubygems 1.3.1 and ruby 1.8.7

Reported by Florian Aßmann · December 7th, 2008 @ 11:15 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to wontfix

    Seems like an issue with sqlite gem.

    December 8th, 2008 @ 02:01 AM