# Where are my .rhtml pages?

**URL:** <https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991>\
**Category:** Rails\
**Created:** [November 23, 2006, 7:09am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991 "2006-11-23T07:09:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:09am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/1 "2006-11-23T07:09:56Z")

</div>

Hi I have created a rails app with my own ERD based on the rolling with  
rails tut.  
I have c:\ruby and c:\rails\myapp. According to the tut I should have  
all my generated .rhtml files under …myapp\views\abc.rhtml etc, but I  
have none whatsoever.

I have years of dev experience, but am sad to say flumoxed at this  
point.

any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:26am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/2 "2006-11-23T07:26:58Z")

</div>

On 11/22/06, ed [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> any help will be appreciated.

hate to ask the obvious (to me at least), but have you generated the  
views yet?

more info would be nice. what steps have you done so far?

–

Chris M.  
Web D.  
Open Source & Web Standards Advocate

> **[Chriscodes.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=chriscodes.com)**
>
> Painless, quick delivery of your domain name. Fast and professional service.

---

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:33am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/3 "2006-11-23T07:33:52Z")

</div>

Chris M. wrote:

> On 11/22/06, ed [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > any help will be appreciated.
> 
> hate to ask the obvious (to me at least), but have you generated the  
> views yet?
> 
> more info would be nice. what steps have you done so far?
> 
> –
> 
> Chris M.  
> Web D.  
> Open Source & Web Standards Advocate  
> [http://www.chriscodes.com/](http://www.chriscodes.com/)

Hi Chris, I generated the models and controllers and then manually added  
the scaffold code to the relevant controller. The app works fine now  
(well once I got used to the plurals way of rails 🙂 ) and all the  
relevant views folders are there, just not the .rhtml pages.

---

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:46am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/4 "2006-11-23T07:46:03Z")

</div>

Excellent thanks I’ll give that a bash.

---

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:41am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/5 "2006-11-23T07:41:43Z")

</div>

ed wrote:

> Chris M. wrote:
> 
> > On 11/22/06, ed [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > any help will be appreciated.
> > 
> > hate to ask the obvious (to me at least), but have you generated the  
> > views yet?
> > 
> > more info would be nice. what steps have you done so far?
> > 
> > –
> > 
> > Chris M.  
> > Web D.  
> > Open Source & Web Standards Advocate  
> > [http://www.chriscodes.com/](http://www.chriscodes.com/)
> 
> Hi Chris, I generated the models and controllers and then manually added  
> the scaffold code to the relevant controller. The app works fine now  
> (well once I got used to the plurals way of rails 🙂 ) and all the  
> relevant views folders are there, just not the .rhtml pages.

You need to create them yourself, or actually generate the scaffold.

if in your controller you have:

class Foo \< ApplicationController  
def index  
@foos = Foo.find(:all)  
end  
end

Then you need to create a view in:

your\_app/app/views/foo/index.rhtml

Or alternatively, you can run the scaffold generator which writes out  
the controller code and rhtml templates so you can start messing with  
them.

ruby script/generate scaffold MyModel

---

<div class="post-metadata">

**Author:** ![ededed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@ededed](https://www.ruby-forum.com/u/ededed)\
**Post date:** [November 23, 2006, 7:51am UTC](https://www.ruby-forum.com/t/where-are-my-rhtml-pages/76991/6 "2006-11-23T07:51:00Z")

</div>

On 11/22/06, Alex W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > more info would be nice. what steps have you done so far?  
> > > (well once I got used to the plurals way of rails 🙂 ) and all the  
> > > end

yep. see this for more info  
[http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator](http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator)

–

Chris M.  
Web D.  
Open Source & Web Standards Advocate

> **[Chriscodes.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=chriscodes.com)**
>
> Painless, quick delivery of your domain name. Fast and professional service.
