Heyas. :)
Check out this link: http://rubyonwindows.blogspot.com/2007/06/using-ruby-ado-to-work-with-ms-access.html
Let me know if that works. :)
Thanks!
Nathan
Want to learn Chinese? www.gatewaychina.net
Check out the following link:
http://infovore.org/archives/2006/08/02/getting-a-class-object-in-ruby-from-a-string-containing-that-classes-name/
That would seem to do what you were asking about above. :)
Thanks!
Nathan
Want to learn Chinese? www.gatewaychina.net
Raj:
I don't use PostGresSQL, so I'm going to be of limited help. However, here are some links I found that might guide you in the right direction:
1)
http://www.ruby-forum.com/topic/134734
2)http://readlist.com/lists/lists.rubyonrails.org/rails/5/29525.html
3)...
Quick follow up:
The solution above utilized a gem plugin. If you want to avoid that then these two links should help:
http://en.wikibooks.org/wiki/Ruby_on_Rails/ActiveRecord/Naming
http://ar.rubyonrails.com/ (click on 'ActiveRecord::Base' in the left column, then then click on...
MetalTree:
Take a look at the following:
http://code.google.com/p/ruby-sequel/wiki/SequelModels
I think you are looking for this part here:
<quote>
You can, however, explicitly set the table name or even the dataset used:
class Post < Sequel::Model(:my_posts)
end
# or
:Post.set_dataset...
Oh yah, here are some helpful links;
http://www.fngtps.com/2006/01/encoding-in-rails
http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings
:)
Nathan
Want to learn Chinese? www.gatewaychina.net
What version of RoR are you using? If your using v2.0 or higher, then try this:
rake db:create
rake db:migrate
Thanks!
Nathan
Want to learn Chinese? www.gatewaychina.net
Heyas:
I have dealt with this exact issue with the Chinese language.
Here is how I dealt with it:
At the top of my model(s) I put the following:
<code>
$KCODE = 'u'
require 'jcode'
</code>
The jcode library updates a number of methods on the String class: ‘chop!’, ‘chop’, ‘delete!’...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.