D. K. wrote:
Hi I'm new to RoR and for my webpage I want to nest a page that has my login fields in a seperate file. The idea is to create a login area on the left side of the screen that will be always visible until they login while the center section will be the main area. I can do this using the application layout file, but I would like to not put the RHTML for the login into the layout directly. Instead I'd like to leave it in the view/login>index.rhtml file.
You would probably want to separate login form into a separate file "app/views/login/_form.rhtml". Then from your login/index action say
render :partial => 'form'
and from your layout file:
render :partial => 'login/form'
Components are evil (and slow).
Zsombor