Daniel
Daniel

Reputation: 3030

Rails 4 Strong Parameters Devise User Admin Models

What is the best way to use Strong Parameters with Rails 4 and Devise for an Admin Model and User Model?

I want to allow the user to sign_in & sign_up --- and the admin to sign_in however not sign_up.

Note* I have already read Strong Parameters by devise.

Upvotes: 1

Views: 390

Answers (1)

Bart
Bart

Reputation: 2656

It does not depend on strong_parameters. Remove :registerable from your admin model.

Upvotes: 1

Related Questions