Feeds:
Posts
Comments

Archive for February, 2008

Stage Update

The data partial was out of sync with the helper; method names were different. I have corrected the issue and updated the code.
This was related to the the naming collision issue.

Read Full Post »

attachment_fu and s3

I kept getting the following error:
AWS::S3::NoSuchBucket (The specified bucket does not exist)
So I did some digging in file vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb, I replaced:
#Bucket.create(@@bucket_name)
with:
begin Bucket.find(@@bucket_name) rescue AWS::S3::NoSuchBucket Bucket.create(@@bucket_name) end
There must have been a reason to comment out the Bucket.create line, but I have yet to find it in [...]

Read Full Post »

Matz Google Tech Talk

Here are some notes from the talk Matz gave. It doesn’t every little detail of the whole ~31 minute talk with a ~19 minute question/answer session. Just some of the points I wanted to remember.
1.9 Incompatibilities with 1.8
block parameters local variables only in pipe blocked scoped #The following will not work in 1.9 # [...]

Read Full Post »

Stage Update: Naming collisions

I’ve just updated the stage plugin to fix a naming collision issue when Rails utilizes two or more helpers with the same name. Previously the method names were simply the column name: User.first_name would have a first_name method in the users_helper. Now that method is defined as user_first_name.
Having the partial setup makes this [...]

Read Full Post »

Piston

If you haven’t heard about it, Piston is a very nice gem that will help you manage your plugins. This is especially true if you have an svn:externals setup with your plugins.
Here’s a quick step by step I recently did to get my Stage plugin into my latest project:
#Install the gemsudo gem install piston [...]

Read Full Post »

Stage Update

The generator was creating a now defunct ‘data’ directory in app/views. This has been corrected.
02.22.2008: Cleaned up the helper format

Read Full Post »

collect and flatten

I run into this scenario many times and never really thought about changing it until recently. It’s very common, I have an array of values and I want to perform an action on each item. My return value would be an array of the results from the action.
Here’s a sample lookup that most [...]

Read Full Post »

Stage Improvements?

I spent some time lurking on the RubyOnRails list and eventually engaged in a couple of conversations. I came away with three important notes:
1) As this was my first publicly announced code released, I realized I should have done this earlier. Great to get feedback.2) Some simple design changes were made to further [...]

Read Full Post »