1. Skip to navigation
  2. Skip to content

The ELC Community Blog

A knowledge exchange on Ruby on Rails and Agile Development


Open Social plugin progress report

by Ryan Garver on January 10, 2008
Well, if you've been following the news around OpenSocial you would have seen that Google released 0.6 of the OpenSocial spec. If you've been watching my Rails plugin you will have noticed that is has become pretty quiet. Expect version 1.1.0 in the next few days, this release will include a new OpenSocial container reference that adheres to the 0.6 spec. This is pulled from the Shindig project. The container will be converging to the new spec and we'll have a number of improvements besides that. Let me know if you have any special requests.

Comments

Warren at 1:11 AM on February 4 2008

Error:

undefined local variable or method `instance’ for #<actionview::base:0x2501c00>

1: <%= opensocial_container(‘http://www.last.fm/opensocial/myfavouritemusic.xml’, :owner => @user, :viewer => current_user, :instance_id => instance.id) %>

  1. rails opensocial
  2. cd opensocial
  3. ruby script/plugin install acts_as_authenticated
  4. ruby script/generate authenticated user user
  5. ruby script/plugin install ruby script/plugin install http://opensocial.rubyforge.org/svn/plugin/tags/STABLE/opensocial_container
  6. Added map.opensocial_container “contain.localhost” to routes.rb
  7. ruby script/generator opensocial
  8. Added <%= opensocial_container(‘http://www.last.fm/opensocial/myfavouritemusic.xml’, :owner => @user, :viewer => current_user, :instance_id => instance.id) %> to app/views/users/opensocial.html.erb
  9. OpenSocialContainer::Configuration.person_class = ‘User’ OpenSocialContainer::Configuration.secret = ‘a secret password’ to environment.rb
  10. def self.opensocial_id_column_name; ‘id’; end def title; self.display_name; end to app/model/user.rb

Mike at 4:56 PM on June 11 2008

I am also running into the same error as Warren. Is there a solution

Ryan Garver at 9:04 PM on June 13 2008

We’re migrating the plugin over to github and re-doing the architecture so that it will be a bit easier to get up and running.

In the meantime: for testing you should be safe just dropping a small integer in place of instance.id. That sample helper assumes you have a local variable called instance set in that view.

Red Davis at 10:58 AM on July 3 2008

Hey, do you have the url to the plugin on github? I can’t find it.

Cheers, Red

Add a comment


home | services | Ruby on Rails Development | code | blog | company