Thanks for all the responses! I'm working from within a world of code I don't understand well. After an extremely rich learning experience, I discovered that I could seed the user database from the console with:
User.new(:login => 'admin', :email => 'admin', :password => 'mypswd', :password_confirmation => 'mypswd').save This worked to give me access while maintaining the existing password system. I also tried Heroku's suggestion of making a database.yml, but stumbled on the rake db:data:dump, command, but rake said it didn't know how to build the task. That would be really useful as a way of getting all the documents I've got out of the local database and onto Heroku. In any event, I learned about authentication, git, console, and others on the way. Thanks to all! On Thu, Jan 8, 2009 at 4:08 PM, Keenan Brock <[email protected]> wrote: > > Hi > > If you put those methods into your model, the rails console acts as > your admin interface. There you can create some logins. > > You can also use migrations to create those users for you. It would be > the same code, just one would be run manually and the other > automatically. > > Dave Thomas said the pragmatic programmer book store only had a > console admin interface for years. Not sure if hey have even added a > web admin interface. > > You can access the console as an option in the lower left corner of > the edit interface > > Hope that helps > Keenan > > > On Jan 8, 2009, at 3:55 PM, HazardJ <[email protected]> wrote: > > > > > Hi everyone, > > > > Heroku is really great. So good that I was able to upload and get my > > application working, though I'm very, very inexperienced. Bravo. > > I've got a problem that escapes me -- when I reinstalled the app > > (tarballed upload) my login _within_the_app (SessionsController) won't > > let me log in anymore. It doesn't like any of the user / password > > combinations. > > The /session page comes up but I go into a samsara of login where it > > gently declines to accept any of my user/password combinations. > > As I was uploading the many different times, I did get some kind of > > error a few times. But others were smooth, including the most > > recent. > > > > Tests I've done so far: > > I've checked the original on my computer (0.0.0.0:3000). It works > > fine. > > I've tarballed in tar.gz (both with log and tmp and without) and > > in .zip any number of times. No luck. > > I'm used to making mistakes and have tried it over and again. > > The files seem to all be there, including the sqlite3 file. > > > > Any thoughts? > > Thanks, James > > > > > > > -- James G. Hazard 540 University Ave, Suite 300 Palo Alto, CA 94301 [email protected] 650.204.9100 (voice); 650.204.9101 (fax) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" 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/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
