Problem after scaffolding

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

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

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

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

Hi, There:

On 9ÔÂ19ÈÕ, ÉÏÎç11ʱ14·Ö, Vinay B. [email protected]

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. [email protected]

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.

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. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs