Error Before Updating Scaffolding From New Db
User List Log In [Before updating scaffolding from new DB schema...] error Damian Croft (milano) on 2005-11-22 16:59 Hi Folks, Working through the Agile RoR book though, I've hit a wall at page 57 where I encounter this error: "Before updating scaffolding from new DB schema, try creating a table for your model (Product)" I'm running on Tiger.... and there's a footnote on the page to warn about this precise error.... OK... so I've gone through all the fixes for ruby on Tiger. Now I have my mysql gem installed without error (at least, I think - it's built me a shiny new folder at /usr/lib/ruby/gems/1.8/gems/mysql-2.7/ full of the right looking stuff and the make file ran without errors.). (I can't actually run the test.rb that it's made me.... it gives me an error saying it's looking for mysql.o.... no idea what that is...... but I otherwise keep optimistic that the mysql fix has worked......) But working through the example I still hit that error. On the pragmatic programmers errat pages I read: "http://wiki.rubyonrails.com/rails/show/HowtoInstal... This needs fixed before mysql gem will work. And the mysql gem needs to work before the scaffold command works." Ok, so maybe this is my problem..... >>And the mysql gem needs to work before the scaffold command works but what exactly does it mean. what do I have to do? I'd be most grateful if anyone can pull me out of this.... Report post Edit Move Delete topic Reply with quote Forum List Topic List New Topic Search Register User List Log In Enable email notification | Enable multi-page view Please log in before posting. Registration is free and takes only a minute. Existing account User name or e-mail address Password Always use SSL (experimental!) NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required! Log in with Google account | Log in with Yahoo account | Log in with Facebook account No account? Register here. Forum List Topic List New Topic Search Register User List Log In
Started Documentation Release Overview Trailhead Books & Cheat Sheets On-Demand Webinars Certification Blogs Tools Force.com IDE Lightning Design System Source Code Scanner More Tools & Toolkits By Topic App Distribution App Logic Architect Database Lightning Mobile Integration Security User Interface Websites Community Developer Forums Events Calendar Developer MVPs Developer Groups Developer Success Stories Blogs Blog All Blogs Developer Relations Engineering Force.com Labs Tech https://www.ruby-forum.com/topic/11726 Docs Trailhead Trailhead - Trails - Modules - Projects Get Help Join the Community Login with Salesforce Don't have an account? Signup for a Developer Edition Browse by Topic Apex Code Development (56103) General Development (42642) Visualforce Development (29028) Formulas & Validation Rules Discussion (6932) APIs and Integration (6596) Jobs Board (6101) Other Salesforce Applications (5563) https://developer.salesforce.com/forums/?id=906F00000008tQeIAI Force.com Sites & Site.com (3585) Java Development (3495) .NET Development (3330) Mobile (1751) Lightning (1527) Trailhead (3263) Perl, PHP, Python & Ruby Development (1894) AppExchange Directory & Packaging (1806) Mobile (1751) Security (1726) Lightning (1527) Chatter and Chatter API Development (1435) Visual Workflow (1088) Salesforce Labs & Open Source Projects (1009) Desktop Integration (969) Apple, Mac and OS X (707) VB and Office Development (613) Schema Development (604) Architecture (425) Salesforce Summer of Hacks (132) Salesforce $1 Million Hackathon (127) Predictive Services (5) View More Topics See All Posts Welcome to Support! Search for an answer or ask a question of the zone or Customer Support. Need help? Dismiss ShowAll Questionssorted byDate Posted ShowAll QuestionsUnanswered QuestionsUnsolved QuestionsSolved Questions sorted byDate PostedRecent ActivityMost Popular + Start a Discussion You need to sign in to do that Sign in to start a discussion Don't have an account? Signup for a Developer Edition Unsolved QuestionsThis Question bhs128[RoR-ASF] Error making scaffold for custom object# ./script/generate scaffold Incident_Report exists app/controllers/ exists app/help
creat scaffold. bbqbakerFebruary 26th, 2006, 09:49 PMI have been sitting here for hrs trying to create the https://ubuntuforums.org/archive/index.php/t-136712.html scaffold according to the RoR book i recently purchase. i getting just a little frustrated now. lol anyways i am at the part of the book that is creating the scaffold for my DB. now when i type ruby script/generate scaffold Products Admin, I get following exist app/controllers/ ... Access denied for user: 'root@localhost' (using password:no) ////////////////////// now error before i assumed that i should put root and my root password everywhere in the database.yml. i also check to see if i can access mysql logging in with root + root password. that all is ok. what should I do? i know its something really simple.... stoffeFebruary 27th, 2006, 03:23 AMI *think* that it's an issue with the error before updating built-in Mysql driver in rails - it has problems on Debian and Ubuntu. Something about accessing the socket that isn't working because it's in the wrong place, but I don't remember details. Installing the C++ binding version instead fixes it. I suppose it is in the repos, but I usually install Rails with gem so I don't know. If you use gems, just grab appropriate mysql and ruby headers from repos and "sudo gem install mysql". There's instructions for all of this somewhere on the Rails wiki, including the problems with the socket. bbqbakerFebruary 27th, 2006, 04:15 AMhi thanks for the reply. actually after MUCH frustration, i was able to reset my PW to root. now the error message is gone but now i have this.. koloa@ubuntu:/var/www/depot$ ruby script/generate scaffold Product Admin exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/product.rb identical test/unit/product_test.rb identical test/fixtures/products.yml error Before updating scaffolding from new DB schema, try creating a tab le for your model (Product) ////////////////