can't convert Enumerator into Array

7 views
Skip to first unread message

rstawarz

unread,
Dec 4, 2009, 12:30:29 AM12/4/09
to restfulx-framework
Hello,
Just starting out with the restuflx framework, and my intiall
attempts to create a config.yml file using 'rake db:schema:to_yaml --
trace' was met with the following stack trace:
can't convert Enumerator into Array
/usr/local/lib/ruby/gems/1.9.1/gems/restfulx-1.2.4/lib/restfulx/rails/
schema_to_yaml.rb:11:in `-'
/usr/local/lib/ruby/gems/1.9.1/gems/restfulx-1.2.4/lib/restfulx/rails/
schema_to_yaml.rb:11:in `schema_to_yaml'
/usr/local/lib/ruby/gems/1.9.1/gems/restfulx-1.2.4/lib/restfulx/
active_record_tasks.rb:87:in `block (3 levels) in <top (required)
>'....

I took a look at the code, and it appears that it's invoking 'map' on
an array... is this compatible with ruby 1.9. ? I made a minor
adjustment to that line to take off the call to the 'map' function,
and my yaml got created just fine.

Any insights would be helpful!

Thanks,
-Ryan

Dima Berastau

unread,
Dec 9, 2009, 5:08:52 PM12/9/09
to restfulx-...@googlegroups.com
Hi Ryan,

restfulx gem has not been tested with ruby 1.9.1, would be great if you could create a ticket for this and share your patch.

Thanks in advance,
Dima
> --
>
> You received this message because you are subscribed to the Google Groups "restfulx-framework" group.
> To post to this group, send email to restfulx-...@googlegroups.com.
> To unsubscribe from this group, send email to restfulx-framew...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/restfulx-framework?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages