# Problem creating a new view

**URL:** <https://www.ruby-forum.com/t/problem-creating-a-new-view/141402>\
**Category:** Rails\
**Created:** [June 25, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/problem-creating-a-new-view/141402 "2008-06-25T14:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavel989](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Post date:** [June 25, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/problem-creating-a-new-view/141402/1 "2008-06-25T14:51:17Z")

</div>

I’ve created a new action in the recipes\_controller class called  
some\_action and a corresponding view for it in the /views/recipes/  
folder.  
However, when I go to the localhost:3000/recipes/some\_action url i get  
“NoMethodError in Recipes#show” and under the parameters it says  
{“id”=\>“some\_action”}. So for some reason ruby treats some\_action as a  
variable for the show method? How do I get it to treat some\_action as a  
valid action?  
I’m sure there is something very obvious I’m missing here.

any ideas?

---

<div class="post-metadata">

**Author:** ![pavel989](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Post date:** [June 26, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/problem-creating-a-new-view/141402/2 "2008-06-26T16:17:41Z")

</div>

I would take a look at your routes to see what is going on. To me it  
looks like Rails is interpreting your request as a RESTful URI and you  
might want a named route.

On Jun 25, 7:51 am, Pavel P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
