I think this is a Ruby 1.8 vs 1.9 problem.
See http://docs.rhomobile.com/rhodes/extensions for more details on core classes and modules.
Our C/C++ implementation is based on original Ruby C code, 1.9 release.
Our Java implementation is based on XRuby<http://xruby.com/>, which supports Ruby 1.8 (We didn’t use JRuby because it is substantially bigger and required version of java which is not available on most of the target mobile platforms).
Which may explain the Android difference.
Do we have a workaround for this issue?
And I noticed that there is mspec file in Rhodes framework, how can we run it under the android platform and confirm it is not supported?
I can not believe alias_method is not supported in Android, since I found there are lots of code using alias_method in framework, for example:
alias_method :old_strftime, :strftime
I wonder if it is other issue instead of alias_method in android.
yes, check that your model contains those fields. You might get that same error message if they are mis-spelled or something.
We use the alias_method and it works on Android.
If you are developing on Windows, it is more likely that you have a misspelled file name in a 'require'. Android has a case-sensitive file system, Windows doesn't.
Today I tested my app one more time, I delete the old data, uninstall the old app, re-installed the app, now this time it works perfectly.
I could not understand why, it seems related to the database change, but it could not explain why the app throw undefined_method exception when calling the alias method create_original()