Hi all! It’s been a while since I have posted as I have been on holidays and have been rather lazy! This post is going to explain the arduous task of deploying your Ruby on Rails application in as much depth as possible to make your lives easier. It took me quite a few days to get this going, however now that I have done it once it is going to be a simple task to deploy other applications.
(more…)
From the Blog
The following post will cover the method of uploading documents in Ruby on Rails. When I was initially looking into doing this I could only find tutorials that covered the uploading of images. Eventually I found the attachment_fu plugin that allowed for uploading of multiple file types. Firstly, we will need to install the plugin (windows users read this first).
The majority of Ruby on Rails developers have moved their projects to GitHub, with many no longer supporting SVN (or whatever their plugin used to be on). GitHub is a fantastic app and it is truly opening many doors for developers. However, if you are a poor soul like myself who does not own an Apple computer, it is more difficult than you think to install a GitHub repository as a Plugin on Windows. Surprised?? I’m not. Let’s use the previously mentioned Searchlogic plugin as the GitHub repository for this post. If I owned an Apple, it would be as easy as typing the following into the console (or whatever it’s called on an Apple).
script/plugin install git://github.com/binarylogic/searchlogic.git
You press enter and it installs the awesome Searchlogic plugin into your app. Yay for you.
Now for us deprived Windows users, there are a few more steps to be taken. Firstly, go here and install msysgit. It’s just a simple install and shouldn’t take to long. Once you’ve done that, right click on your app’s root folder, and select “Git Bash Here”. The mysysgit command prompt will come up. Type the following and it will install your plugin.
script/plugin install git://github.com/binarylogic/searchlogic.git
Your now ready to use the plugin as usual. Hoped this helped.
Cameron
GitHub page: binarylogic’s Searchlogic
Git on windows: msysgit