Does YAML::dump([1,3,5,7]) work ?  You will need to require 'yaml' for
it.

On Sep 9, 3:10 pm, Erwin <[EMAIL PROTECTED]> wrote:
> Is there anyway to generate a serialized attribute like this one
> inside the fixture :
>
> knowledge: "--- \n- 1\n- 3\n- 5\n- 7\n"
>
> I tried
> knowledge: <%= [1, 3,  5, 7].to_yaml %>
>
> doesn't not work... so I do it using irb, then copy/paste..
>
> thanks
>
> erwin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to