I think I've done something simple like this to arbitrarily create a
user with Devise:

class User < ActiveRecord::Base
  def self.create_new_user(email, password)
    user = User.new({ :email => email, :password => password })
    return user.save
  end
end

That does require the admin to choose a password. I have an algorithm
to create a random 10-character string that I mail to the user with
the invite. The user can change that if they want.

On Thu, Jul 14, 2011 at 6:49 PM, frankblizzard <[email protected]> wrote:
> It depends.
> Devise is a well-tested and powerful authentication solution. You need
> to decide if it's overkill or not for what you are trying to achieve.
> Regarding invitations, do you know: 
> https://github.com/scambra/devise_invitable
> ?
> looks like it does what you want..
>
>
>
>
>
> On Jul 15, 12:34 am, "Leonel *.*" <[email protected]> wrote:
>> Wouldn't be easier to just create the authentication from scratch? Any
>> thoughts from anybody that has been through that?
>>
>> http://railscasts.com/episodes/250-authentication-from-scratch
>>
>> --
>> Posted viahttp://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.
>
>

-- 
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.

Reply via email to