#296 new
linoj

loosing multiline content in textarea

Reported by linoj | October 1st, 2009 @ 11:20 PM

Just populating a textarea with multiline content, and then submitting the form, everything after the first line gets truncated and lost in the response. I see this running cucumber but not when running the app in the browser (script/server)

controller

... def edit
@abc = "a\nb\nc" end

view

... <%= text_area_tag 'abc', @abc %>
...

just submit without changing any fields

controller#update params => { "abc" => "a\n" }

  • [R] cucumber >= 0.3.11
  • [I] webrat >= 0.4.4
    • [I] nokogiri >= 1.2.0
    • [I] rack >= 1.0
  • [I] rspec >= 1.2.6
  • [I] rspec-rails >= 1.2.6
    • [I] rspec >= 1.2.7
    • [I] rack >= 0.4.0

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages