Thomas Swift

Running a West Coast Offense since ‘81

Entries Tagged as 'rails'

Securing your log files when using acts as authenticated

April 4th, 2007 · No Comments

I came across the Filtering Sensitive Logs Railscast the other day and Ryan explains how to filter out password information out of your development and production log files, something i needed to do for my site.
He uses a simple application with only one password field, where I am using acts as authenticated which uses […]

[Read more →]

Tags: rails · iden.tify.us

Audio File Uploads with Attachment_fu

March 21st, 2007 · 14 Comments

I want to use attachment_fu to handle audio file uploads.
In the rails root, in the command-line

script/plugin install http://svn.techno-weenie.net/projects/plugins/attachment_fu/

and

script/generate Model Audio

Edit the newly created migration in db/00X_Create_Audios.rb

class CreateAudios < ActiveRecord::Migration
def self.up
create_table :audios do |t|
t.column :parent_id, :integer
[…]

[Read more →]

Tags: rails · iden.tify.us