# Weird problem related I am having with scaffold

**URL:** <https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152>\
**Category:** Rails\
**Created:** [June 12, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152 "2006-06-12T19:42:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [June 12, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152/1 "2006-06-12T19:42:03Z")

</div>

i,

I have this in expense\_controller.rb:

class ExpenseController \< ApplicationController  
scaffold :expense  
end

It works fine, but let’s say I want to override scaffold’s list.  
For some reason, just making list.rhtml in views\expense is enough, and  
there’s no need to add

def list  
end

in expense\_controller.rb. However, that’s not my real problem.

Now when I have this custom list action, and I want remove it, just  
removing the list.rhtml won’t do it. Now there’s blank page, so  
obviously it’s still using the list.rhtml although it can’t find it.  
Only way to resume scaffold’s list is to restart Mongrel.

I am quite sure that this can’t be normal. Any ideas?

ps. I have the same problem with Instant Rails WEBrick.

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [June 12, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152/2 "2006-06-12T19:43:57Z")

</div>

Please don’t mind that small typo in the subject 🙂

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [June 13, 2006, 2:51am UTC](https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152/3 "2006-06-13T02:51:13Z")

</div>

Curt does an excellent job at jump starting Ruby with Rails.  
Please refer to:

> **[Radar - O’Reilly](https://www.oreilly.com/radar/)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

Also, if you refer the the bottom part of the last page, you will  
encounter others who have had similar problems getting started.

---

<div class="post-metadata">

**Author:** ![rane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rane](https://www.ruby-forum.com/u/rane)\
**Post date:** [June 12, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/weird-problem-related-i-am-having-with-scaffold/63152/4 "2006-06-12T20:32:34Z")

</div>

Raine Virta wrote:

> I have this in expense\_controller.rb:
> 
> class ExpenseController \< ApplicationController  
> scaffold :expense  
> end

I personally recommend against newbies using the inline scaffolding.  
It’s  
handy in the hands of folks who understand what RoR is doing behind the  
scenes but is/was, for me, too damn magical for folks trying to learn  
the  
basics. Instead, I recommend you use ruby script\generate Model\_name  
Controller\_name. All will be revealed and the problem you’re having  
will go  
away.

hth,  
Bill
