photography portfolio
projects
A more detailed section is in the works. For now, here are a few to look at.
Upcoming projects..
Ruby Array to Javascript Array Mar 10
March 10, 2010 @ 01:01am ruby on rails

Need to pass a Ruby Array to a Javascript Array?
Here’s a little gem I found a while ago that I’m reusing in my current project.


>> a_ruby_array = ["one", "two", "three"]
=> ["one", "two", "three"]
>> "['#{a_ruby_array.join('\',\'')}']"
=> "['one','two','three']"