Re: Basic Question about Base Files

you can also set up a layout in apps/views/layouts/ and put your html
template there then in the controller you want to share this template
put

layout “nameoflayout”

make sure you have a

yield :layout

where you want the specific methods to show up in. For instance my
admin controller shares one layout and each action or method is
displayed or “yielded” at the specific point on the layout where I want.
Which in my case is in my div#content box.

Typing this on my palm omw home. Write back if you have any questions.

Thomas england

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs