Error Before Updating Scaffolding From New
User List Log In Error: Before updating scaffolding from new DB schema, try.. donut donut (donut) on 2006-07-22 02:44 Hi, I'm going through the Depot tutorial in the book "Agile Web Development with Rails" and I can't even get past the very first step. I'm getting the following error: "Before updating scaffolding from new DB schema, try creating a table for your model (Product)" when I try to run "ruby script/generate scaffold Product Admin. I have a table called "products" created in MySQL database depot_development and so it's not a name mismatch problem. I google'd a around and found that people who ran into this problem eventually "fixed" it by not using a MySQL password. So I removed my MySQL user password and the scaffold command worked. Is there a correct way to fix this problem? I don't want to have an empty password for my sql account. Thanks. Report post Edit Move Delete topic Reply with quote Re: Error: Before updating scaffolding from new DB schema, t donut donut (donut) on 2006-07-22 02:50 I'm running ubuntu 6.06, ruby 1.8.4, rails 1.1.4, gems 0.9.0 if that matters. Report post Edit Delete Reply with quote Re: Error: Before updating scaffolding from new DB schema, t Gedas Kucinskas (Guest) on 2006-07-22 08:24 Hey, this helped me: http://www.vandomburg.net/pages/mysql-ruby-windows Regards, Gedas On 22/07/06, Donut Donut
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow https://www.ruby-forum.com/topic/74073 Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can't update a Review Scaffold in Ruby on Rails ? Error: NoMethodError in ReviewsController#update up vote 1 down vote favorite I have created a review http://stackoverflow.com/questions/33224666/cant-update-a-review-scaffold-in-ruby-on-rails-error-nomethoderror-in-review scaffold that is nested inside the Post Model but when i try to update the Review i get this Error: NoMethodError in ReviewsController#update undefined method `review_url' for #
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support https://ubuntuforums.org/showthread.php?t=136712 AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search http://www.codeschool.com/discuss/t/rails-generate-scaffold-error/7683 Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk help me with Ruby on Rails please. Cant creat scaffold. Having an Issue With Posting ? Do you want to help error before us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 8 of 8 Thread: help me with Ruby on Rails please. Cant creat scaffold. Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode February 26th, 2006 #1 bbqbaker View Profile View Forum Posts Private Message Just Give Me the Beans! error before updating Join Date Feb 2006 Beans 58 help me with Ruby on Rails please. Cant creat scaffold. I have been sitting here for hrs trying to create the 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 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.... Adv Reply February 27th, 2006 #2 stoffe View Profile View Forum Posts Private Message Visit Homepage Way Too Much Ubuntu Join Date Jan 2005 Location Stockholm, Sweden Beans 286 Re: help me with Ruby on Rails please. Cant creat scaffold. I *think* that it's an issue with the built-in Mysql driver in rails - it has problems on Debian and Ubuntu. Something about accessing the socket that isn't working because it
installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring. Could not find coffee-script-source-1.9.0 in any of the sources Run `bundle install` to install missing gems. I run bundle install and still getting same message. I'm just starting to learn rails and would appreciate any help! snychka 2015-02-04 01:40:17 UTC #2 Hey. Best (and only) guess is to run bundle update ... the gem exists and everything else is in order, but you need an updated version. But, there're a ton other potential reasons. More details on figuring out what the issue is below, if the above doesn't help (it's a lucky guess if it does help). We're going to need a lot more info., I think, to help out. I didn't come across this when scaffolding, and google seems to indicate this is not a common error. So, a whole bunch of questions which can kickstart this diagnostic process. (Note I'm not using spring, so that could be an issue ... revert to not using that if there're issues.) How did you install ruby? How did you install rails? Where are your gems installed? Is there a gems/coffee-script-source-1.9.0 directory somewhere within your ruby/rails installation? Did you run rails new