[Rails] Re: Rails show views from a different controller

2010-11-06 Thread Dv Dasari
Arailsdemo A. wrote in post #959802: > You need to take the redirect_to out of the about_us action, and instead > just set an instance variable that has the comments that you want to > display. > That is Awesome, just works like I wanted. Thank you so much. -- Posted via http://www.ruby-forum.co

[Rails] Re: Rails show views from a different controller

2010-11-06 Thread Arailsdemo A.
You need to take the redirect_to out of the about_us action, and instead just set an instance variable that has the comments that you want to display. # app/controllers/pages_controller.rb class Pages < ApplicationController def about_us @comments = Comment.all end end Then all you nee