Unable to insert YAML into t.text field (behavior different from Ruby 1.8.6)
----------------------------------------------------------------------------

                 Key: JRUBY-3038
                 URL: http://jira.codehaus.org/browse/JRUBY-3038
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.4
         Environment: Ubuntu 8.04 -- Linux version 2.6.24-21-generic running on 
i386
Java; VM        -- 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15; Sun 
Microsystems Inc.
Runtime        -- Java(TM) SE Runtime Environment 1.6.0_10-rc-b28
JRuby             -- JRuby version 1.1.4 installed by NetBeans 6.5 (pre-rel)
            Reporter: Eric M. Smith
            Assignee: Thomas E Enebo
         Attachments: RailsApplication1.tbz2

When attempting to insert information into a text field within the mysql 
database, ActiveRecord raises an exception stating:

TypeError (wrong argument type String (expected YAML::JvYAML::Node))

When running under Ruby 1.8.6, the operation that generates this error succeeds 
without problem.

I have attached a program that generates this error.  To generate the exception 
follow these instructions.

1) Unpack the project to a folder on your test machine.  Edit the 
username/password in the database.yml file appropriately.

2) Create the development database using "rake db:create"

3) Install the database using "rake goldberg:install"

4) Launch the application using "script/server" or similar

5) Login to the application as administrator (admin/admin)

6) Use the menu in the left column to navigate to "Administration -> Setup -> 
Roles"

7) Select the Administrator role

8) Scroll down and hit the "Edit" link

9) Change the name to "Superuser"

10) Click on the "Edit" button.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to