# Trouble installing/configuring Rails

**URL:** <https://www.ruby-forum.com/t/trouble-installing-configuring-rails/117140>\
**Category:** Rails\
**Created:** [October 13, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/trouble-installing-configuring-rails/117140 "2007-10-13T19:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colleen\_RobledoS\_ML](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@Colleen\_RobledoS\_ML](https://www.ruby-forum.com/u/Colleen_RobledoS_ML)\
**Post date:** [October 13, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/trouble-installing-configuring-rails/117140/1 "2007-10-13T19:39:47Z")

</div>

Hello,

I’m absolutely brand new to Ruby on Rails, and am trying to install it  
on my host server. My host server (Netfirms) provides limited support  
for Ruby on Rails, meaning they have the programming script and db  
bindings pre-installed. We simply copy the files to our directories  
and configure to our db.  
[http://support.netfirms.com/idx.php/0/649/article/Ruby-on-Rails-Quickstart-Guide.html](http://support.netfirms.com/idx.php/0/649/article/Ruby-on-Rails-Quickstart-Guide.html)

I am running this with MySQL

* * *

I’ve got all the files copied correct, but am running into trouble on  
this final step my hosts provides (but won’t offer help with) in their  
Quick Installation Guide:

# Using vi editor OR ee, edit railsapp/app/controllers/

tablename\_controller.rb by inserting the following line inside the  
class declaration: scaffold :tablename

(the name of my tablename is “casualties”)

When I open casualties\_controller.rb with my vi editor, it displays:

class CasualtiesController \< ApplicationController  
end

* * *

I’m not sure where in that casualties\_controller.rb file I am supposed  
to insert “scaffold :casualties”.

Thank you,  
Colleen Robledo

---

<div class="post-metadata">

**Author:** ![Colleen\_RobledoS\_ML](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@Colleen\_RobledoS\_ML](https://www.ruby-forum.com/u/Colleen_RobledoS_ML)\
**Post date:** [October 13, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/trouble-installing-configuring-rails/117140/2 "2007-10-13T19:54:25Z")

</div>

On Oct 13, 2007, at 10:35 AM, Colleen Robledo, MLIS wrote:

> When I open casualties\_controller.rb with my vi editor, it displays:
> 
> class CasualtiesController \< ApplicationController  
> end
> 
> I’m not sure where in that casualties\_controller.rb file I am supposed  
> to insert “scaffold :casualties”.

class CasualtiesController \< ApplicationController  
scaffold :casualties  
end

– gw

---

<div class="post-metadata">

**Author:** ![Colleen\_RobledoS\_ML](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@Colleen\_RobledoS\_ML](https://www.ruby-forum.com/u/Colleen_RobledoS_ML)\
**Post date:** [October 17, 2007, 6:17am UTC](https://www.ruby-forum.com/t/trouble-installing-configuring-rails/117140/3 "2007-10-17T06:17:26Z")

</div>

Colleen Robledo, MLIS wrote:  
[…]

> I’ve got all the files copied correct, but am running into trouble on  
> this final step my hosts provides (but won’t offer help with) in their  
> Quick Installation Guide:
> 
> # Using vi editor OR ee, edit railsapp/app/controllers/
> 
> tablename\_controller.rb by inserting the following line inside the  
> class declaration: scaffold :tablename  
> […]  
> I’m not sure where in that casualties\_controller.rb file I am supposed  
> to insert “scaffold :casualties”.

It sounds like you’re not familiar with Ruby class declarations (or else  
you would have known where to put that code 🙂 ). If that’s indeed the  
case, let me suggest that you spend some more time with the Ruby  
language documentation before you dive into Rails. Rails makes heavy  
use of Ruby’s object-oriented features, so if you’re going to work with  
Rails, you shouid probably at least know how to recognize class  
declarations and suchlike.

> Thank you,  
> Colleen Robledo

## Best,

Marnen Laibow-Koser  
removed\_email\_address@domain.invalid
