a.) ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password:NO)
When the web application connect to mysql database, it prompts out an error "ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password:NO)"
Solution: Use phpmyadmin to change the root password.
b.) Undefined method 'scaffold' for TaxiController:Class
When i am using scaffold in my Taxi Controller [scaffold :taxi]]to dynamic generate the web application, i encounter an issue that is undefined method 'scaffold' for Taxicontroller:class.
Solution: Install the scaffolding plugin by issuing the command "plugin install scaffolding"
c.) Undefined method 'paginate' for #
After i have successfully installed the scaffold plugin, i re-run the taxi web application in the browser, i encounter an issue that is undefined method 'paginate' for # TaxiController
so, i search the plugin from web in order to install that plugin...But..
after issuing the command : ruby script/plugin install http://tools.assembla.com/svn/breakout/breakout/vender/plugins/classic_pagination,
that plugin still does not install properly as the classic_pagination in taxiapp\vendor\plugins\classic_pagination is an empty directory.
Solution: Download classic_pagination plugin in my pc and extract it in
"vendor\plugins\classic_pagination" under the taxi web application.
Solution: use strftime to get the hour and minute in order to control the timeformat, for example, passenger.time_required.strftime("%I:%M%p")
f.) JobID does not be auto-increment during the table altering.
Guys,
回覆刪除You are moving very fast or maybe I am too behind. I need to do a lot to catch up. Thank you for posting the problems on the blog. I can therefore refer to your solutions.
Ernest