# Best practise

**URL:** <https://www.ruby-forum.com/t/best-practise/109492>\
**Category:** Rails\
**Created:** [July 15, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/best-practise/109492 "2007-07-15T20:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b4bc9f/32.png) [@harm](https://www.ruby-forum.com/u/harm)\
**Post date:** [July 15, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/best-practise/109492/1 "2007-07-15T20:53:15Z")

</div>

Dear all,

I am making some sort of questioning system in which people and answer  
different questions (with a limited answer set). These questions can  
have comments but I will not directly show people that, think of blog  
post with associated comments.  
A page displays two or three things: 1) the next question unanswered,  
2) the previous question with a tally of the given answers and 3)  
possibly the comments on that previous question.  
Now I made and URL much like:  
[http://localhost:3000/scribe/show?question=17&answer=16&show\_comments=true](http://localhost:3000/scribe/show?question=17&answer=16&show_comments=true)

But this breaks down if I have a form where people can leave their own  
comment and the new comment fails validation. Normally in the  
controller I would write; render :action =\> new\_question (or something  
like that). But that does not work now because showing comments is  
coded in show\_comments=true. And I need to show on thesame page the  
previous and next question as well.  
Am I still making sense?  
How would you solve this?

With kind regards,  
Harm
