Instructions for installing and configuring sendmail software with action_mailer of rails in Ubuntu. It might be some complicated. 在 Ubuntu 安裝與設定 sendmail 可能會令人覺得複雜,以下是安裝與設定指引: Below statements are for development machines. 以下屬於開發環境機器的設定: Check below option
read moreIf you want to associate your user model, which are built by Devise gem, with OAuth clients, which are authenticated and authorized by Doorkeeper gem, you should follow below instructions. Below instructions come from wiki pages of Doorkeeper gem. Command for Database changes rails generate doorkeeper:application_owner rake db:migrate Configuration at config/initializers/doorkeeper.rb Uncomment or add this statement into block of Doorkeeper.
read moreI learn a lesson that putting javascript codes/files into last part of body area in normal situations because javascript codes can actually access DOM in body tag area. If I put them in header area of html file, it won’t work as I expect. According to my friends' explanations, it runs first before the body renders complete in normal scenarios. I learn the lesson when I was trying to generate
read moreThis article is written for Rails beginners when he/she want to deploy an app. From my experience, many things must be noticed and fixed, whose range from Ubuntu, RVM, Apache, Passenger, Postgres, Git, Capistrano and GitHub.com. The following are indexes for problems, solutions and resources I had faced. It might evolve with times change. Ubuntu List packages you have installed to a machine. Command: dpkg -l | grep {packageFullnameorPartname} Change
read more因為想要用 Capistrano 3 從本機的 git Rails repo,直接部署到遠端機器上,不想要經過 GitHub.com 和 BitBucket 這類網站。找了很久網路上的說明和軟體原始碼,發現 Capistrano 3 已經不支援這樣
read moreIf you accidently add sensitive information to your repository like password and detailed configurations, you should use follow command to remove them from the repository. More than that, you should change sensitive information for remote machines with your colleagues. Substitute names of other files you want with below text within background color is gray. 如果你不小心放入敏感資訊到你的G
read more