hi i want to convert no to words so using linguistics.rb; while using it linguistics.rb i am receiving an error no such file to load -- linguistics.rb i have installed gem for it linguistics <1.0.8> code=> require ''linguistics.rb'' Linguistics::use( :en ) any fix? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 12, 12:08 am, Saboor <saboorahmeda...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi > i want to convert no to words so using linguistics.rb; > while using it linguistics.rb > i am receiving an error > > no such file to load -- linguistics.rb > > i have installed gem for it > linguistics <1.0.8> > > code=> > require ''linguistics.rb''Require statements do not use the .rb extension - try that. --Matt Jones -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Feb 12, 2010 at 12:08 AM, Saboor <saboorahmedawan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi > i want to convert no to words so using linguistics.rb; > while using it linguistics.rb > i am receiving an error > > no such file to load -- linguistics.rb > > i have installed gem for it > linguistics <1.0.8> > > code=> > require ''linguistics.rb'' > Linguistics::use( :en ) > > any fix?Unless you are using Ruby 1.9 you need to require ''rubygems'' in order to load gems. You can do this either in the code itself or via a command line argument to ruby $ ruby -e''require "rubygems";p require "linguistics.rb"'' -e:1:in `require'': no such file to load -- linguistics.rb (LoadError) from -e:1 $ruby -rubygems -e''p require "linguistics.rb"'' true $ruby -e''require "rubygems";p require "linguistics.rb"'' true -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.