On Mar 15, 3:52 am, Tom Jay <[email protected]> wrote:
> Michael Graff wrote:
>
> thanks - turns out it was irb not reloading classes. i just discovered
>
> irb>> load 'measure.rb'
>
> will load any changes you have made to 'measure.rb' if you are using irb
> to poke through your rails
>
There are some subtleties to this. It loads measure.rb again, so if
you have added a method or change a method then those changes will
take effect. It won't however remove a method you deleted. Things like
validations etc will get applied a second time and so on.
If you want to do the same sort of reloading that rails does between
requests then (and this is specific to script/console) you can run
reload!
Fred
> thanks again,
>
> tom
> --
> 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
-~----------~----~----~----~------~----~------~--~---