Tag Archives: rails

Rails Draggable Element Example – Scriptaculous Effect

This is a simple example of how to create two separate draggable elements using Scriptaculous Effect draggable_element. Here is what the end result will look like. Each box will be draggable. So once done, you’ll be able to drag each section and each section will remain on the screen where you leave it: Include default [...]

Ruby Time formatting and datetime SQL Column

If you’d like to format Time in Ruby, keep in mind that datetime SQL Columns translate to Time objects. So you can use the strftime method of the Time class to format the date/time. For example, assume scheduled_time is a field in your database and it has a sql data type of ‘datetime’. In your [...]

Set up a Rails project on BlueHost

Here are advantages to using BlueHost, in my opinion, for your RoR (Ruby on Rails) projects. However, you may have to do some of your own research sometimes, but I’ve been posting BlueHost related BlueHost How-Tos. Keep in mind that BlueHost support is not just focused on hosting Rails projects. Even still, I highly recommend [...]

Deploying a Rails App, with Git and Capistrano on BlueHost

Here I’ll make an attempt to describe how to create a rails app from scratch on your local machine, configure a private Git repository on BlueHost and use Capistrano to deploy the latest code from the private shared Git repository. Almost all of the steps below work, except I’m still unable to deploy the code [...]

Sending mail via GMail with Rails ActionMailer

If you are wondering how to get your Rails app to send email through your GMail account, read on… However, you need at least Ruby 1.8.7 according to the Agile Web Development with Rails book. I use BlueHost and they are on 1.8.6, as of July 27, 2009. So, these instructions won’t work on BlueHost [...]