Hey Josh, Carl's suggestion should work, but at first I was having similar issues...For me, I was having trouble activating the user. Carl suggested this (forgive me if you've already seen this):
Within the terminal, type this: >./script/console >me = User.find(1) >me.activate It also helped to add the following line of code to the user_controller file. To do this correctly, you should copy user_controller.rb and paste a copy in your app/controller directory (in order to override the community engine file--I'm also a newb, so please correct me if I'm wrong) Within the "create" method, paste this: @user.activated_at = Time.now That way, during development, whenever a user is created, it is automatically activated. Helped me out a bit. Best of Luck, Jared On Mar 24, 2:53 am, Joshua Needham <[email protected]> wrote: > I'm still not quite getting what needs to be input to activate a user > from the console. > > I've tried several different methods and none turned out, and I'm > fairly new to Ruby and Rails so and code snippet for the console would > be greatly appreciated. > > I found the code that needs to be run but can't figure the structure. > > Thanks in advance. > > Joshua Needham > Extreme Newbie > > On Feb 21, 10:09 pm, jrgoodner <[email protected]> wrote: > > > Carl, Thanks man! She Works! > > > On Feb 21, 7:27 pm, Carl Fyffe <[email protected]> wrote: > > > > :-) > > > > User.activate is a method, it does all of the things required to > > > activate the account. If you type in exactly what I wrote, and then > > > try to login it will work. I apologize for not being explicit enough. > > > If that doesn't work, then you may need to also call me.save > > > > Read the code, that is the best way to learn how everything works. > > > > On Sat, Feb 21, 2009 at 9:23 PM, jrgoodner <[email protected]> wrote: > > > > > Thanks Carl--which aspect of the User Table to do I need to change? > > > > And to what? > > > > > On Feb 21, 6:01 pm, Carl Fyffe <[email protected]> wrote: > > > >> Using the console find the user and activate it > > > > >> ./script/console > > > > >> >> me = User.find(1) > > > >> >> me.activate > > > >> On Sat, Feb 21, 2009 at 7:59 PM, jrgoodner <[email protected]> wrote: > > > > >> > No, I haven't--I was wondering if that was the issue. How do I > > > >> > activate it if I don't have the site set up for email? > > > > >> > On Feb 21, 4:41 pm, Nicholas Nam <[email protected]> wrote: > > > >> >> Not sure if it's required for admins, but did you activate the > > > >> >> account? > > > > >> >> On Sat, Feb 21, 2009 at 7:35 PM, jrgoodner <[email protected]> > > > >> >> wrote: > > > > >> >> > Hey there, i'm a Super Noob to both ROR and Comm Engine. It's > > > >> >> > all set > > > >> >> > up, but I'd love to create more categories, and I'm unable to > > > >> >> > sign in > > > >> >> > to the website. > > > > >> >> > I signed up, then used the rake command to turn a user into an > > > >> >> > admin. > > > >> >> > But when I attempt to log in, this pops up: > > > > >> >> > "Uh oh. We couldn't log you in with the username and password you > > > >> >> > entered. Try again?" > > > > >> >> > Any ideas? > > > > >> >> > On another note, Comm Eng is friggin wonderful. So far, it has > > > >> >> > saved > > > >> >> > me quite a bit of time! Thanks in advance fellas/ladies! > > > > >> >> > --Jared --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
