Hi I have a rhtml documment in views/account/login.rhtml I want to include the contents of login.rhtml in views/welcome/index.rhtml any suggestions on how this can be done? Thanks Scott
on 2006-04-19 18:11
on 2006-04-19 18:45
Turn the shared content into a partial. Google ruby rails partials and I'm sure you'll see a ton of demonstrations. Charlie Bowman www.recentrambles.com
on 2006-04-19 18:54
I believe this can also be done by using render_component - though if you want to render a login box you'll probably want to use a partial.
on 2006-04-19 18:58
You could use a component if you wished. A partial is faster, if you can use it.