I installed FasterCSV as an gem.
It is working fine in ruby scripts and from irb but not in rails.
If i do:
require ''rubygems''
require ''faster_csv''
from a rails console I get an error:
NameError: identifier index needs to be constant
from
/usr/lib/ruby/gems/1.8/gems/fastercsv-0.2.1/lib/faster_csv.rb:344:in
`new''
from
/usr/lib/ruby/gems/1.8/gems/fastercsv-0.2.1/lib/faster_csv.rb:344
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require''
from (irb):2
Any help appreciated!
Thanks,
Simon
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---