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
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
2 matches
Mail list logo