# Problem after scaffolding

**URL:** <https://www.ruby-forum.com/t/problem-after-scaffolding/114960>\
**Category:** Rails\
**Created:** [September 19, 2007, 10:14am UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960 "2007-09-19T10:14:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 10:14am UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/1 "2007-09-19T10:14:50Z")

</div>

hi guys,  
I am having problems after scaffolding  
I created a db called “requests”  
and when i tried to execute the command  
script/generate scaffold request  
It gave me an error please make sure you have a database request created  
before you do this  
The db is obviously created; rails cant access it…  
so I tried to hack i copied my view model and controller files from my  
local deployment to my LIVE server. Everything seems to work fine except  
that my app cant find my CSS  
so instead of something like this:

it renders something like this:

hence my app cant find the css… any solution

regards,  
warlock handler

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 10:50am UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/2 "2007-09-19T10:50:29Z")

</div>

Vinay B. wrote:

> hi guys,  
> I am having problems after scaffolding  
> I created a db called “requests”  
> and when i tried to execute the command  
> script/generate scaffold request  
> It gave me an error please make sure you have a database request created  
> before you do this  
> The db is obviously created; rails cant access it…  
> so I tried to hack i copied my view model and controller files from my  
> local deployment to my LIVE server. Everything seems to work fine except  
> that my app cant find my CSS  
> so instead of something like this:
> 
> it renders something like this:
> 
> hence my app cant find the css… any solution
> 
> regards,  
> warlock handler

ok guys i understood what the problem was… heheh ironically… i didnt  
copy the scaffold.css file only… haha since rails couldnt find it…  
hence it rendered it that ways

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/3 "2007-09-19T12:27:34Z")

</div>

Vinay B. wrote:

> > I am having problems after scaffolding  
> > I created a db called “requests”  
> > and when i tried to execute the command  
> > script/generate scaffold request

Hiya Vinay,

Just a word of caution request is a reserved word in Rails so if you  
have additional problems you may want to rename your table/model etc.

Cheers  
Luke

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/4 "2007-09-19T13:36:42Z")

</div>

Hi

I wonder why scaffolding generates error !??

### script/generate scaffold request

You hadn’t entred the name of the controller, is this an error !??  
Why not you didn’t used this line :

### script/generate scaffold request controler\_name

Or maybe, you entred a non-exsitng table, or the name of the table in  
your db wasn’t in plural

I’m new in the RoR programming, and I wanna learn more about  
scaffolding that’s why I insist  
Plz, could you tell us what was the real problem with scaffolding ??

Thanks

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/5 "2007-09-19T13:49:47Z")

</div>

Hi, There:

On 9ÔÂ19ÈÕ, ÉÏÎç11Ê±14·Ö, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/6 "2007-09-19T15:25:17Z")

</div>

myst\_tt wrote:

> Hi,  
> I dont know if this is something you missed:  
> The project, let’s name it as “depot”, needs a “depot\_development”  
> db, and in this db, you need a table named “requests” before you can  
> do “scaffold request”.
> 
> I mentioned the above because u said ---- it was a DB called  
> “requests”, be attention about DB and table within DB.
> 
> Br,
> 
> On 9ï¿½ï¿½19ï¿½ï¿½, ï¿½ï¿½ï¿½ï¿½11Ê±14ï¿½ï¿½, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Yes I have a DB… and a table named requests… I wasnt sure why the  
error; but all I can say is first i had hit a  
script/generate scaffold requests  
then I hit  
script/destroy scaffold requests (as it was suppose to be singular)  
then I hit  
script/generate scaffold request  
and still I got the error… anyways the hack is working perfectly fine.

---

<div class="post-metadata">

**Author:** ![warlock\_handler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/57b2e6/32.png) [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Post date:** [September 19, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/problem-after-scaffolding/114960/7 "2007-09-19T13:52:47Z")

</div>

Hi,  
I dont know if this is something you missed:  
The project, let’s name it as “depot”, needs a “depot\_development”  
db, and in this db, you need a table named “requests” before you can  
do “scaffold request”.

I mentioned the above because u said ---- it was a DB called  
“requests”, be attention about DB and table within DB.

Br,

On 9ÔÂ19ÈÕ, ÉÏÎç11Ê±14·Ö, Vinay B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
