# Extend UserEngine to have different user type

**URL:** <https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269>\
**Category:** Engines\
**Created:** [January 30, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269 "2006-01-30T23:21:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpatoio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a9adbd/32.png) [@hpatoio](https://www.ruby-forum.com/u/hpatoio)\
**Post date:** [January 30, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269/1 "2006-01-30T23:21:08Z")

</div>

Hello, I’m new to Rails and expecially to Engines.  
I’ve just installed the LoginRngine and the UserEngine.

I’m developing a new application where I have different type of users  
with different personal data.

The UserEngine like it is now, it doesn’t allow to manage this (right ?)

What do you think is the best way to manage this situation ?

- expand the engine so that it can handle diffent type of users
- forget the engine and manage everything in the application.

Simone

---

<div class="post-metadata">

**Author:** ![hpatoio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a9adbd/32.png) [@hpatoio](https://www.ruby-forum.com/u/hpatoio)\
**Post date:** [January 30, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269/2 "2006-01-30T23:45:15Z")

</div>

Just because the provided engine controllers/views don’t provide the  
mechanisms to edit your custom user data doesn’t mean you can’t use  
them - you can create your own controllers to edit the data, or use  
the code-mixing mechanism engines provide to extend/modify the  
existing controllers to suit your application.

It’s important, especially for someone coming recently to Rails, to  
realise that there does _not_ need to be a 1-1 mapping between models  
and controllers.

- james

On 1/30/06, Simone F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> - expand the engine so that it can handle diffent type of users
> - forget the engine and manage everything in the application.
> 
> Simone
> 
> * * *
> 
> engine-users mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org)

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![hpatoio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a9adbd/32.png) [@hpatoio](https://www.ruby-forum.com/u/hpatoio)\
**Post date:** [January 31, 2006, 11:25am UTC](https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269/3 "2006-01-31T11:25:14Z")

</div>

JA\> or use the code-mixing mechanism engines provide to extend/modify  
the  
JA\> existing controllers to suit your application.  
What you mean exactly with “code-mixing mechanism” ?  
Can you provide some links ?

## Thanks again

Simone

---

<div class="post-metadata">

**Author:** ![hpatoio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a9adbd/32.png) [@hpatoio](https://www.ruby-forum.com/u/hpatoio)\
**Post date:** [January 31, 2006, 11:34am UTC](https://www.ruby-forum.com/t/extend-userengine-to-have-different-user-type/53269/4 "2006-01-31T11:34:20Z")

</div>

[http://wiki.rubyonrails.org/rails/pages/overloading+Rails+Engines+Models+and+Controllers](http://wiki.rubyonrails.org/rails/pages/overloading+Rails+Engines+Models+and+Controllers)  
[http://api.rails-engines.org/engines](http://api.rails-engines.org/engines) (section ‘Tweaking Engines’)  
[http://rails-engines.org/wiki/pages/How+Engines+Work](http://rails-engines.org/wiki/pages/How+Engines+Work)  
[http://rails-engines.org/wiki/pages/Why+Models+Don’t+Act+Like+Controllers](http://rails-engines.org/wiki/pages/Why+Models+Don%27t+Act+Like+Controllers)

and of course: [http://rails-engines.org/](http://rails-engines.org/)

On 1/31/06, Simone F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> What you mean exactly with “code-mixing mechanism” ?  
> Can you provide some links ?

–

- J \*  
~
