I have 4 controllers, a, b c, and d. In the controllers i created a
method with the name “homepage”.
What is the best solution (partials, content_for ect. ) the create the
homepage-template with the content of the described controllers with the
method “homepage”
What is the best solution (partials, content_for ect. ) the create the
homepage-template with the content of the described controllers with the
method “homepage”
Grt…remco
Not sure I entirely understand the question, you can alwas create a
template and then say which template you will be using in the
controllers method
render :layout => ‘homepage-template’
Not sure if this helps at all,
-S
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.