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.
Archive for February, 2008
Stage Update
Posted in RubyOnRails, Stage on February 28, 2008 | Comments Off
attachment_fu and s3
Posted in RubyOnRails on February 26, 2008 | 2 Comments »
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 [...]
Matz Google Tech Talk
Posted in Ruby on February 25, 2008 | Comments Off
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 # [...]
Stage Update: Naming collisions
Posted in RubyOnRails, Stage on February 23, 2008 | Comments Off
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 [...]
Piston
Posted in RubyOnRails on February 23, 2008 | 2 Comments »
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 [...]
Stage Update
Posted in RubyOnRails, Stage on February 20, 2008 | Comments Off
The generator was creating a now defunct ‘data’ directory in app/views. This has been corrected.
02.22.2008: Cleaned up the helper format
collect and flatten
Posted in Quick Tips, Ruby on February 12, 2008 | Comments Off
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 [...]
Stage Improvements?
Posted in RubyOnRails, Stage on February 2, 2008 | Comments Off
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 [...]
