On Nov 18, 3:04 pm, Zhoran Tvalve <[EMAIL PROTECTED]>
wrote:
> Hi there!
> I study Ruby on Rails and met a problem.
>
> I placed a class definition code for class which is NOT a Model into
> separate file, assume MyToolClass.rb
>
> Then I started working on controller code and required 'MyToolClass'
>

use require_dependency instead of require.

Fred

> While working on controller code I also corrected some code in
> MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were
> ignored by Rails until I had restarted Mongrel.
>
> Q#1: Please write to me how can I tell Rails to reread source files
> those were changed after last use.
>
> Q#:2 Where to place files like MyToolclass.rb, which are nither Model,
> nor Controller?
>
> Thank you for your attention.
> --
> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to