One of the most difficult tasks when putting up a new site is picking the right host. Moving hosts later on is terribly difficult so choosing the correct hosting company is as important as selecting a business partner. I've collected about 30 hosting companies in my delicious bookmarks. Some are specific to a platform others are really cheap. I recorded them because they looked interesting.
The latest movement in web hosting is towards cloud hosting. This is the holy grail for the user and for the hosting company. Imagine a web host that scales as you grow. Everyone would love nothing more than a host that could handle getting slammed by Digg.
Amazon's ec2 service offers scalable services, but it is not a simple as your typical web hosting company. The Ruby gem ec2onrails will simplify the process of getting your Ruby on Rails application up an running. RightScale builds on ec2 to make it easy to deploy your application. They add a dashboard and make it easy to load balance and...Continue Reading →
I have been working with rFacebook to try to get a Facebook application up and running. Right now we are trying to integrate our conference application - 51weeks.com with Facebook so that our users can take advantage of existing social networks instead of having to create yet another network at he conference they are attending.
In working on the application I kept getting an exception related to redirect_to:
wrong number of arguments (2 for 1)
The stack trace points to this file:
So I did what any good developer would do I went to Google and came up with this post.
The poster replaced this line in the gem:
path = url_for__ALIASED(options, *parameters)
path = options
I am not brave enough to mess around with the gem - it makes deployment a bit of a headache so I sat back and thought about this for a bit. This always helps me. I checked my facebook.yml file. I have been using '/' as the callback_path. ...Continue Reading →
This problem may not be specific to rFacebook, but when I added acts_as_facebook_user to my user model and then made a call like:
I would get an 500 internal server error. I checked the log and saw this: CGI::Session::CookieStore::CookieOverflow
I found that if I changed the app so that it uses db sessions everything started working.
Uncomment this line in environment.rb:
config.action_controller.session_store = :active_record_store
Make sure to add the session tables to your db by using the rake task and you should be good to go. Note that I am running edge rails so keep that in mind if you use this advice.Continue Reading →