# Error rendering view with number in the name

**URL:** <https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369>\
**Category:** Rails\
**Created:** [April 21, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369 "2008-04-21T17:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubylicious](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Post date:** [April 21, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369/1 "2008-04-21T17:08:46Z")

</div>

I have a large number of html files that I want my application to render  
and embed ruby into from active record.

The files are named as such:

02\_welcome\_intro.html.erb  
06\_explore\_it.html.erb  
50\_standard\_presentation.html.erb  
55\_mc\_IE.html.erb

I’m getting the following error when attempting to render any of these  
views:

“undefined method `view\_paths’ for 2:Fixnum”

I’ve tried using all the different forms of “render” and all return the  
same error. Apparently it doesn’t like having numbers in the name of the  
view file.

Anyway around this?

---

<div class="post-metadata">

**Author:** ![rubylicious](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Post date:** [April 21, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369/2 "2008-04-21T18:22:11Z")

</div>

Maybe we need to see your view script 🙂 so we can find out the trouble  
key.

Reinhart  
[http://teapoci.blogspot.com](http://teapoci.blogspot.com)

---

<div class="post-metadata">

**Author:** ![rubylicious](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Post date:** [April 21, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369/3 "2008-04-21T18:35:27Z")

</div>

Visit Indonesia 2008 wrote:

> Maybe we need to see your view script 🙂 so we can find out the trouble  
> key.
> 
> Reinhart  
> [http://teapoci.blogspot.com](http://teapoci.blogspot.com)

Found the problem. Ended up be a restful routes issue. Created a  
custom route and resolved the issue.

Thanks anyway,
