You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.