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: <link href="/stylesheets/scaffold.css?1187836758" media="all" rel="Stylesheet" type="text/css" /> it renders something like this: <link href="/stylesheets/scaffold.css" media="all" rel="Stylesheet" type="text/css" /> hence my app cant find the css... any solution regards, warlock handler -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Vinay Beckham 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: > <link href="/stylesheets/scaffold.css?1187836758" media="all" > rel="Stylesheet" type="text/css" /> > it renders something like this: > <link href="/stylesheets/scaffold.css" media="all" rel="Stylesheet" > type="text/css" /> > > hence my app cant find the css... any solution > > regards, > warlock handlerok 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Vinay Beckham wrote:>> I am having problems after scaffolding >> I created a db called "requests" >> and when i tried to execute the command >> script/generate scaffold requestHiya 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, There: On 9月19日, 上午11时14分, Vinay Beckham <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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: > <link href="/stylesheets/scaffold.css?1187836758" media="all" > rel="Stylesheet" type="text/css" /> > it renders something like this: > <link href="/stylesheets/scaffold.css" media="all" rel="Stylesheet" > type="text/css" /> > > hence my app cant find the css... any solution > > regards, > warlock handler > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Beckham <rails-mailing-l...@andreas-s.net>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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---