I was asking iHate (codename of programmer from substruct) some questions about Ruby on Rails a few days ago and he commented to me that it looked very unprofessional that BrainBankHQ.com had a server error.
This didn’t initially bother me for two reasons:
- The traffic on the website is minimal.
- The server error wasn’t a bug. It was just something that hadn’t been coded in yet and it won’t be a top priority until BrainBank is ready for alpha/beta users.
However, as I thought about it more, I realized I was potentially missing a marketing opportunty so I fixed it. Now there is a Beta Request page which is connected with my PipelineDeals account.
Feel free to sign up and I’ll send you an email once beta accounts are available.
I think part of the reason I didn’t do this earlier was because I didn’t know how… and I didn’t want to spend the time doing it. For people who use Ruby on Rails, here’s how I did it:
#inside app/controllers/application.rb before_filter :sales_site_check private# real_account? just checks if an account exists for the domain used in the request.
# if it doesn’t, it will just render views/sales/index.html.erb
def sales_site_check
render :template => ‘sales/index’, :layout => false unless real_account?
end
It’s not really sophisticated and it won’t be usable once I’m ready to launch but it’s enough for now.