Skip to content

Instantly share code, notes, and snippets.

@javier
Created January 16, 2009 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javier/47918 to your computer and use it in GitHub Desktop.
Save javier/47918 to your computer and use it in GitHub Desktop.
namespace :initialize do
desc "initialize users"
task :users => :environment do
u=User.find_or_initialize_by_email "user@example.com"
u.password='blabla'
u.save
end #task do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment