redirect_to @microsite.landing_page
. The visitor then sees a url like so: `http://myname.the_app.com/pages/id How can I render the landing page but keep the root path? I want to be able to see the "about page" but with the url http://myname.the_app.com
.
Here's an option: have a home_controller#index action that instantiates all the page
variables it needs. However ... I'm holding this off because what if I have more than page? What if I want the landing_page to be something else in the future, like a contact_form
located at `/contact_forms/id?
Thanks!
Perhaps render :template => "pages/#{whatever_id}" might solve your problem. Just replace your redirect_to with the render...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.