-
How to disable IE6 in your Rails applications
Well, the uprising against IE 6 has begun, and not a moment too soon – IE 6 will be seven years old on August 27th. In fact, there’s even a service to say goodbye to the old dinosaur.
You can do your bit for the Internet by showing a warning to IE 6 users in your Rails applications, or disabling it completely for those users, encouraging them to upgrade their browsers (or nag the relevant Sys Admin).
Firstly you need to install the UserAgent plugin by Josh Peek:
script/plugin install git://github.com/josh/useragent.gitYou then need to copy this script to your lib directory.
If you want to just show a warning to people using unsupported browsers, you’ve got a valid_browser? helper method:
<%- unless valid_browser? -%> ... <%- end -%>Or you can disable access completely:
before_filter :restrict_browser
def restrict_browser
unless valid_browser?
render :action => '/path_to_template'
return false
end
end
-
Tutorial for restful_authentication on Rails with Facebook Connect in 15 minutes
[Update (10 April 2010): we've edited the tutorial to bring it up to date with the current incarnations of Facebook Connect, Facebooker and Rails.]
Back in June 2007 I wrote a popular tutorial on writing Facebook platform applications with Ruby On Rails. Time has moved on and Facebook has launched Facebook Connect which allows you to integrate Facebook into your own sites allowing authentication, registration, friend connecting, and Facebook feed posting in the context of your application. Mashable has a great post on 10 great implementations of Facebook Connect including Joost, Vimeo and Disqus.
At Made By Many we are fans of the possibilites of Facebook Connect for lowering barriers to registration, extracting social graph and injecting your social media functions into the daily online life of users. There is little point trying to create a “new” facebook on your site. Your unique social proposition lies elsewhere with your content, community and tools.
People have found the integration of Facebook Connect tricky and while great libraries like facebooker handle the API part, actually getting the profile linking and integration flow is harder. So I’ve written this tutorial to integrate the most commonly used starter plugin for authentication and registration in Ruby On Rails, restful_authentication, with Facebook Connect to allow your users to login and register through Connect.
First of all, let’s state what this integration is going to achieve:
- As a user I can register to the site through entering my details so I can access all that great functionality
- As a user I can login to the site through my entered username and password
- As a user I can register to the site through Facebook Connect so I don’t have to fill in that form
- As a user I can login to the site through Facebook Connect so I don’t have to remember two passwords
- As a user I can connect my existing site user with my Facebook Connect user so I can later login through Facebook Connect
We also have a constraint we need to consider:
- As a user if I register a user through entering my details and later login through Facebook Connect I want to make sure I retain my old user account
So read on and I’ll have you Connected in 15 minutes.
Read full post -
Thoughts on Seth Godin’s London Session

Seth Godin’s stated aim yesterday at the London Session was to ‘give us a headache’ – well, what he *did* do was give us food for thought – if he counts that as headache material! I’ve taken the table above, which he showed during his talk, from this old post of his.
He said a lot of interesting things, most of which was drawn from his books and his blog. The more interesting part was the 2-hour long Q&A session that followed, which I kept thinking to myself was like a free consultancy session from one of the smartest marketing brains in the world. There were lots of entrepreneurs, some musicians and even a vicar in the audience, apart from the usual advertising, marketing and B2B suspects.
So without further ado, and paraphrased in my own words, here are the main things I gleaned:
1. Ideas that spread win.
2. Some things are too important to be left to the marketing department: you need to be agile and ready to execute on-the-go. Bureaucratic delays while things are passed around from one department to another are likely to harm you in the long run. Pick it up and run!
3. As Seth says here, the TV-Industrial complex, the model that we can interrupt people with ads on TV, is over. Now people will not look at your ad or product unless they want to. And to make them to, you need to tell a story.
4. Design stuff that people want to talk about, or stuff that they want. That’s the key to success. Not pushing something that people don’t want down their throats in the hope that sales will pick up.
5. Turn strangers into friends before turning them into customers. Then the longevity of your product is much more of a likelihood than otherwise.
6. The internet gives power to every individual. So like the Comcast technician found sleeping on his client’s couch, you can’t afford to be rude to someone in the hope that that will solve your problem. Seth spoke of a lady who repeatedly returned shoes she bought online but was never refused that privilege because the positive press from the larger decent majority was more important to them than the negative press they would have got if this lady shouted from the rooftops that their return policy was fake. What if her comments were numbers 1, 2 and 3 on a Google search for the company? Be Google-friendly.
7. Does your business have a story, like LittleMissMatched, which sells pairs of socks that don’t match to school girls because it gives them something to show off to their friends?
8. Gatekeepers are no longer important. People like non-interfering middlemen who don’t try to own the situation. Like Kiva, which puts you in touch with the person you want to help directly, rather than the countless charities who decide what they want to do with your money on their own. Or Paypal.
9. The music industry is like the Seinfeld curve, which in Seth’s words is this:
The Seinfeld curve shows us Jerry’s life. If you like Jerry Seinfeld you can watch him on television, for free, in any city in the world two or three times a day. Or, you could pay $200 to go see him in Vegas. But there is no $4 option for Jerry Seinfeld. This is death. You can’t make any money in here. Because if you’re not scarce I’m not going to pay for it because I can get if for free. And one of the realities that the music industry is going to have to accept is this curve now exists for you. That for everybody under eighteen years old, it’s either free or it’s something I really want and I’m willing to pay for it. There is nothing in the center-it’s going away really fast.
Recognise where your product’s strengths really lie.
10. Is your company trying to make products for customers or trying to find a customer for your products?
11. Being a heretic is not always dangerous – in fact it can sometimes reward you more than you think. Take the risk.
12. Shun the non-believers. They are not going to like your product anyway. Instead, try to find the people who have the potential to believe.
13. Consumers do open themselves to interruption if you are providing information that suits them. Like DailyCandy, a site that provides opt-in information to users, which was sold for $115 million 6 months ago.
14. Don’t bend down too low. Chiat/Day were known for rejecting clients who didn’t see things the way they saw it. And they are *STILL* known for the path-breaking Apple ad, among others.
15. If you can create something that will attract it’s own tribe, like Apple, there’s nothing like it.
The thing with Seth is that a lot of what he says is common sense but the way he says them and the examples he quotes are really things worth listening to. Getting inspiration and insight together – a deadly combination.








