# No route matches "/%20questions/showans/1" with {:method=\>:g

**URL:** <https://www.ruby-forum.com/t/no-route-matches-20questions-showans-1-with-method-g/174531>\
**Category:** Rails\
**Created:** [August 28, 2009, 9:02am UTC](https://www.ruby-forum.com/t/no-route-matches-20questions-showans-1-with-method-g/174531 "2009-08-28T09:02:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![salman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@salman](https://www.ruby-forum.com/u/salman)\
**Post date:** [August 28, 2009, 9:02am UTC](https://www.ruby-forum.com/t/no-route-matches-20questions-showans-1-with-method-g/174531/1 "2009-08-28T09:02:34Z")

</div>

Hi  
i face this problem when i submit the information while evaluating the a  
new page in a already done scaffold…the new page is  
“showans”…i write the link\_to tag like this " \<%= link\_to ‘Submit’,  
:controller =\> " questions", :action =\> “showans”, :id =\> @question.id  
%\>"

---

<div class="post-metadata">

**Author:** ![salman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@salman](https://www.ruby-forum.com/u/salman)\
**Post date:** [August 28, 2009, 9:08am UTC](https://www.ruby-forum.com/t/no-route-matches-20questions-showans-1-with-method-g/174531/2 "2009-08-28T09:08:45Z")

</div>

Salman L. wrote:

> Hi  
> i face this problem when i submit the information while evaluating the a  
> new page in a already done scaffold…the new page is  
> “showans”…i write the link\_to tag like this " \<%= link\_to ‘Submit’,  
> :controller =\> " questions", :action =\> “showans”, :id =\> @question.id  
> %\>"

Hi Salman,  
Do not Put space after define controller or action in link\_to tag…  
Use below  
\<%= link\_to ‘Submit’,  
:controller =\> “questions”, :action =\> “showans”, :id =\> @question.id  
%\>"

---

<div class="post-metadata">

**Author:** ![salman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@salman](https://www.ruby-forum.com/u/salman)\
**Post date:** [August 28, 2009, 11:49am UTC](https://www.ruby-forum.com/t/no-route-matches-20questions-showans-1-with-method-g/174531/3 "2009-08-28T11:49:58Z")

</div>

2009/8/28 Salman L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi  
> i face this problem when i submit the information while evaluating the a  
> new page in a already done scaffold…the new page is  
> “showans”…i write the link\_to tag like this " \<%= link\_to ‘Submit’,  
> :controller =\> " questions", :action =\> “showans”, :id =\> @question.id  
> %\>"

I think the space in " questions" is causing the problem. This can be  
seen in the error as %20 is a space.

Colin
