On 13 Aug 2010, at 09:08, Tsuyoshi Takahashi <li...@ruby-forum.com> wrote:
> After installing calendar_helper-0.2.3 gem, application using > CalendarHelper works fine. Then I tried to test using rake command which > gave me the following error. > > Why does these messages appear evenif the application owrks fine. Because the indication to require calendar helper is incorrect in cases where all the code is loaded ahead of time (the only time this doesn't happen is usually development) Use config.gem instead Fred > ------------------------------ Error Messags > -------------------------------------- > /usr/local/jruby-1.5.1/bin/jruby -I"lib:test" > "/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" > "test/functional/schedules_controller_test.rb" > /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in > `load_missing_constant': uninitialized constant > SchedulesHelper::CalendarHelper (NameError) > from > /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in > `const_missing_with_dependencies' > from /root/Aptana Studio/scheduler/app/helpers/schedules_helper.rb:2 > from /root/Aptana > Studio/scheduler/app/helpers/schedules_helper.rb:31:in `require' > -------------------------------------------------------------------------------- > Environment: OS:VineLinux 5.1, platform:AptanaStudio, Ruby:Jruby-1.5.1, > DB:MySQL, adapter:activerecord-jdbcmysql-adapter-0.9.7 > > Placed 'include CalendarHelper' in schedules_helper.rb and "require > 'calendar_helper'" statement at the bottom of config/environment.rb. > > Does someone know how to solve this? > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.