Hi, I''m learning RoR and I have a problem with RedCloth. I have installed it by gem install RedCloth and I have it in my path. But when I require it, it is not found. irb(main):001:0> require ''rubygems'' => nil irb(main):002:0> require ''redcloth'' LoadError: no such file to load -- redcloth from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in `new_constants_in'' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'' from /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'' from (irb):2 What did I forget ? Thanks -- 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-/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 May 14, 1:12 pm, Kevin Ulrar <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I''m learning RoR and I have a problem with RedCloth. > > I have installed it by gem install RedCloth and I have it in my path. > But when I require it, it is not found. > > irb(main):001:0> require ''rubygems'' > => nil > irb(main):002:0> require ''redcloth'' > LoadError: no such file to load -- redcloth > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:239:in > `require'' > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:239:in > `require'' > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:225:in > `load_dependency'' > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:596:in > `new_constants_in'' > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:225:in > `load_dependency'' > from > /usr/local/lib64/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/ dependencies.rb:239:in > `require'' > from (irb):2 > > What did I forget ? > ThanksIf this is in a rails app, then don''t forget to add it to your bundle Fred> > -- > Posted viahttp://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-/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 May 14, 1:28 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On May 14, 1:12 pm, Kevin Ulrar <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > > If this is in a rails app, then don''t forget to add it to your bundle >and by that I mean add it to your Gemfile Fred> Fred > > > > > > > -- > > Posted viahttp://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-/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.
By putting gem ''rubygems'' gem ''redcloth'' in my Gemfile ? If it is that, it makes my another error : Could not find gem ''redcloth (>= 0, runtime)'' in any of the gem sources listed in your Gemfile. -- 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-/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 May 14, 1:47 pm, Kevin Ulrar <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> By putting > > gem ''rubygems'' > gem ''redcloth'' > > in my Gemfile ? > If it is that, it makes my another error : >You don''t need gem ''rubygems''.> Could not find gem ''redcloth (>= 0, runtime)'' in any of the gem sourcesThe name of the gem is RedCloth Fred> listed in your Gemfile. > > -- > Posted viahttp://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-/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.