Skip to content

Instantly share code, notes, and snippets.

@5v3n
Created April 13, 2011 15:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 5v3n/917775 to your computer and use it in GitHub Desktop.
Save 5v3n/917775 to your computer and use it in GitHub Desktop.
in order to make spork reload routes & any rb file in the app folder:
Spork.each_run do
load "#{Rails.root}/config/routes.rb"
Dir["#{Rails.root}/app/**/*.rb"].each { |f| load f }
end
Spork.each_run do
load "#{Rails.root}/config/routes.rb"
Dir["#{Rails.root}/app/**/*.rb"].each { |f| load f }
end
@georgeu2000
Copy link

Thanks. Worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment