On Jun 20, 2012, at 9:04 AM, Manish Nautiyal wrote:

> Hi all
> 
> I'm using rails 3.2.1 + devise 2.0.4
> 
> My problem is that in my website only : Admin will create new users no
> direct registration for users.

The way that I handle this in my applications is to use Devise Invitable, and 
then restrict the invitation privilege to admins. You don't get to know the 
password, because the user sets it herself when she accepts the invitation. But 
everything else just works. Since you aren't using registerable, you will need 
to provide your own "Update my Profile" method in a controller if you want to 
allow the user to update his profile, but that's covered in the Wiki.

Walter

> Now when Admin create new_user
> confirmation mail will be send to the user email id. The content of the
> mail is
> 
>    user_name
>    user_password
> 
> But the password come in encrypted format.
> 
> 
> How I'll get password in readable form.
> 
> -- 
> Posted via http://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