# Using User\_Engine

**URL:** <https://www.ruby-forum.com/t/using-user-engine/61683>\
**Category:** Engines\
**Created:** [May 26, 2006, 2:47am UTC](https://www.ruby-forum.com/t/using-user-engine/61683 "2006-05-26T02:47:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@benjamin](https://www.ruby-forum.com/u/benjamin)\
**Post date:** [May 26, 2006, 2:47am UTC](https://www.ruby-forum.com/t/using-user-engine/61683/1 "2006-05-26T02:47:13Z")

</div>

I will be working on an information system in a few weeks. I have  
finally gotten the User\_Engine engine to work but have realized that to  
access any part of the engine it’s always accessed at  
[http://local](http://local)…/user/user\_engine action.

I have two questions:

-Is there any ways I can rename /user/ to something such as /portal/,  
etc.

-If I want to create a controller within /user/, how can I do that. Ex.  
[http://local](http://local)…/user/dashboard/

Thanks,

Benjamin J. Hecht

---

<div class="post-metadata">

**Author:** ![benjamin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@benjamin](https://www.ruby-forum.com/u/benjamin)\
**Post date:** [May 26, 2006, 4:31am UTC](https://www.ruby-forum.com/t/using-user-engine/61683/2 "2006-05-26T04:31:21Z")

</div>

I forgot to add: Can model data for models in the user\_engine folder be  
accessed from controllers outside of the user\_engine folder.

---

<div class="post-metadata">

**Author:** ![benjamin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@benjamin](https://www.ruby-forum.com/u/benjamin)\
**Post date:** [May 26, 2006, 11:11am UTC](https://www.ruby-forum.com/t/using-user-engine/61683/3 "2006-05-26T11:11:43Z")

</div>

On 5/26/06, Benjamin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I will be working on an information system in a few weeks. I have  
> finally gotten the User\_Engine engine to work but have realized that to  
> access any part of the engine it’s always accessed at  
> [http://local](http://local)…/user/user\_engine action.
> 
> I have two questions:
> 
> -Is there any ways I can rename /user/ to something such as /portal/,  
> etc.

Yes - use routes.

> -If I want to create a controller within /user/, how can I do that. Ex.  
> [http://local](http://local)…/user/dashboard/

Probably the simplest way is to create a normal ‘dashboard’ controller  
and use routes to make it look like it’s under /user/dashboard.  
Anything else is probably going to get a bit complicated, especially  
if you’re not intimately familiar with Rails.

On 5/26/06, Benjamin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I forgot to add: Can model data for models in the user\_engine folder be  
> accessed from controllers outside of the user\_engine folder.

… yes. All of the code within an engine is available pretty much as  
if it was sitting in your /app folder.

- james

---

<div class="post-metadata">

**Author:** ![benjamin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@benjamin](https://www.ruby-forum.com/u/benjamin)\
**Post date:** [May 30, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/using-user-engine/61683/4 "2006-05-30T15:26:07Z")

</div>

> -If I want to create a controller within /user/, how can I do that. Ex.  
> [http://local](http://local)…/user/dashboard/

You can define a User::DashboardController. But then you have to work  
with routes in any case, since it would search a dashboard method in the  
UserController before the index method in the User::DashboardController.
