On Aug 14, 5:37 am, Tsuyoshi Takahashi <li...@ruby-forum.com> wrote:
> Frederick Cheung wrote:
> >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
>
> Thanks Fred.
>
> I placed "config.gem 'calendar_helper'" in environment.rb as you
> indicated then the problem was solved.
>
> Then next same error as below arose evenif I placed "config.gem
> 'actionpack'" same as the upper statement.

Don't do that - actionpack is part of rails and so is loaded anyway.
Where does UploadedFile come from?

Fred

> ---------------error message--------------------
> /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_tes 
> t_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/activ 
> e_support/dependencies.rb:440:in
> `load_missing_constant': uninitialized constant
> SchedulesHelper::UploadedFile (NameError)
>   from
> /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/activ 
> e_support/dependencies.rb:80:in
> `const_missing_with_dependencies'
>   from /root/Aptana Studio/scheduler/app/helpers/schedules_helper.rb:3
> -----------------------------------------------
> module SchedulesHelper
>   include CalendarHelper
>   include UploadedFile
> end
> -------------------------------------------------
> What is the difference between 2 cases.
>
> Tsuyoshi
>
> --
> 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-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.

Reply via email to