Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue
-
javan-whenever with ec2onrails
After reading the Railscast about javan-whenever, a great ruby gem that allows you to write cron jobs in highly readable ruby with an impossible to forget syntax (compared to the daunting obliqueness of straight cron), I tried to get it running with...
-
My Recipe For Sinatra/Thin/Rack/Webfaction
The solution I am using for deploying a Sinatra app that runs on Thin and Rack on Webfaction, without Capistrano or Git, just using Rsync and Rake.
-
## Create the application:
myapp config config.ru config.yml db migrate rake migration...
-
## Create the application:
-
My Recipe For Capistrano/Git Rails Deployment on Webfaction
The joys of Capistrano have long eluded me. I was well aware of the easy life of instant deploys that it promised, but getting it up and running on my WebFaction account proved an insurmountable task that always saw me giving up in frustration, I didn...
-
Cucumber + Paperclip
I just spent an inordinately long time trying to figure out how to get Cucumber tests to create records with Paperclip files attached. Those of you with an equally troglodytic IQ may thus find this snippet useful. The idea here, which is probably obvious...
-
Wilderness CMS Rails 2.3 Engines Plugin
I recently started working on what I thought was going to be an extension on the Bort Rails starter-site idea which I am a huge fan of. My initial idea was to include a default user admin panel but then I kept going and it evolved into something...
-
Ruby on Rails before_ callbacks must return true gotcha
Spent a heck of a long time trying to figure out why my Cucumber tests were failing this afternoon. I assumed it had to do with an API key problem (this test/model involved a spam checking service) until I discovered that “If a before_* callback returns...
-
Note To Self – Rails To Do List
I am in the habit of keeping multiple random text file to do lists for projects, on my desktop generally. It’s not ideal. I was pleased when it occurred to me just now to get in the habit of putting a todo.rb file in a Rails project folder that defines...
-
acts_as_versioned_with_changes
Acts As Versioned is a very cool gem from technoweenie that will store versioned copies of your main table in a secondary _versions table. One problem I noticed in trying to get it running was that running sudo gem install acts_as_versioned grabbed...
-
Do Or Dialog
A simple alternative to standard javascript confirms
Features:
- Easy to customize css and image to produce custom dialog boxes
- Uses Prototype and Scriptaculous
How It Works:
<a href='http://isnorcreative.com' onclick='return do_or_dialog(this...
-
Deploying Ruby on Rails 2.2 to Webfaction
WebFaction is my Rails host of choice - the prices are good, the service is great, I love the Mongrel hosting, I have experienced no downtime, the support is excellent, generally no complaints. This is my procedure for deploying a Rails application...
- Page 9 of 11
- Next page
- Previous page