Ruby

Testing Rails - Cucumber vs CKEditor

Submitted by aaron on Thu, 06/16/2011 - 12:45

 How do you get a feature to set the value of a ckeditor field so that it can run under any driver (javascript or not)?

#value = "Thing to set body to..."
begin
  page.evaluate_script("CKEDITOR.instances.discussion_body_editor.setData('<p>#{value.gsub("'","\\\\'")}</p>');")
rescue Capybara::NotSupportedByDriverError
  And %{I fill in "discussion_body_editor" with "#{value}"}
end

 
 

I just wasted an entire afternoon getting rails running on PostgreSQL!!!

Submitted by aaron on Fri, 08/13/2010 - 16:24

Here are the notes I took during the epic voyage of getting rails + postgresql working on my macbook in case it helps anyone out there...
 
 
#started with
sudo port -v selfupdate

#then started postgres install via macports
sudo port install postgresql84 postgresql84-server
#failed several times, but got it to work after running the 'clean openssl' command and re-running

Ruby on Rails + Paperclip + PlUpload

Submitted by aaron on Mon, 08/09/2010 - 15:19

With a few simple changes you can get plupload to work with an existing paperclip based model/controller in your Ruby On Rails application.
 
Step 1) Modify the plupload initialization from the example on plupload's site - note the comments marked "RoR"
 

Building a custom eCommerce application with Spree

Submitted by aaron on Mon, 03/16/2009 - 15:25

Tired of wrestling with Dupal and its evil spawn Ubercart, I recently decided to see what Ruby on Rails has been up to lately.  An initial search turned up a few options
 
Substruct : This looked like it had a lot of potential, but I noticed that it has not had much activity lately.  The documentation also was very sparse.
 

Syndicate content

Copyright © 2011, Aaron Blondeau

Drupal theme by Kiwi Themes.