# Rubycookbook 15.1 problem

**URL:** <https://www.ruby-forum.com/t/rubycookbook-15-1-problem/77172>\
**Category:** Ruby\
**Created:** [November 24, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/rubycookbook-15-1-problem/77172 "2006-11-24T22:25:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 24, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/rubycookbook-15-1-problem/77172/1 "2006-11-24T22:25:18Z")

</div>

I was following along Lucas’s rubycookbook receipe 15.1 for creating a  
ROR application for displaying the o/p of dir command on a windows  
machine onoto a browser.

my application is named “check” instead of “status” as given in  
receipe.

my C:/Documents and  
Settings/ri004902/check/app/controllers/check\_controller.rb … file  
looks as  
…  
class CheckController \< ApplicationController  
def index  
time = Time.now  
@time = time  
@dr = exec “dir/p”  
end  
end  
…  
and my C:\Documents and  
Settings\ri004902\check\app\views\check\index.rhtml … file is  
…

# Directory structure at \<%= @time %\>

\<%= @dr %\>

.....................................................

I start the webbrick and point my brwser to  
[http://localhost:3000/check/](http://localhost:3000/check/)

what i get is  
Application error (Rails)

I tried with @dr= ‘dir/p’ in index of CheckController … but in vain.

could anyone provide me a lead.

Cheers  
Rajib
