Michael Wright wrote:
> def clear_cache
> Dir.chdir('../../../../../')
> system('rake _0.7.3_ tmp:cache:clear')
> redirect_to 'http://127.0.0.1:3000/admin'
> end
>
> clear_cache
>
Mike, they are probably not being skipped but your system call is
erroring out due to not being in the place you think you are..
The relative addressing you are using above looks rather fragile.. any
way to use the context path?
use the log to output the Dir.pwd .. or make sure rake is in your path..
lastly, I believe you can run rake from within ruby which is probably a
better alternative than to use the system..
ilan
--
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 [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
-~----------~----~----~----~------~----~------~--~---