Well, this blog is woefully behind the times! Most of my blogging these days can be found on the ZURB blog. Check out some of my posts about design strategy:
Archive for the ‘Uncategorized’ Category
Here is an interesting article from Smashing Magazine about web design usability that I’ve already read over a few times.
The entire article is interesting, but I think one of the most important points to notice here is that people’s behaviors on the web are changing. The article cites older studies that indicate people rarely scroll to view content on a web page — and then more recent studies that found the opposite. People have become used to scrolling as they become more familiar with the web.
I think this highlights the importance of keeping our web design skills up-to-date, and never assuming that we should continue to use strategies just because that’s the way we’ve always done it.
I’ve been working on a Facebook application for a client, integrating Facebook functionality with an existing Ruby on Rails backend. Using iFrames instead of FBML seems to be the best option for established sites, but unfortunately support for this route is rather limited. Facebooker is the only Rails plugin option now that RFacebook is defunct, and is definitely geared toward FBML — the actual book on the subject never once mentions iFrames.
Facebook itself has been making strides in supporting iFrames, but still seems a little spotty. The iFrame route apparently being the ugly duckling of Facebook programming, there isn’t much of an online community around this approach, either. One good blog post on the topic is here: http://webjazz.blogspot.com/2008/03/gotchas-of-internal-iframe-facebook.html, but it doesn’t address all of the issues I ran into:
Double or Nothing
The catch: once the user accepts the installation, they may be redirected to your page sans Facebook frame altogether.
The cause: check your “Post-Authorize Redirect URL” in the facebook app settings. This should be relative to your Canvas URL and start with http://apps.facebook.com. Do NOT use the app URL on your domain, because it will not be facebook-framed.
You can install rails as a project dependency under
vendor/ via git:
>git clone git://github.com/rails/rails.git vendor/rails
This will install EDGE rails, with all the latest and greatest code. If you’d like to go back to a stable release (e.g. 2.3.2), do:
>git checkout origin/2-3-stable
If you need to update RubyGems, they’ll tell you you can just run “
gem update --system”, but this didn’t work for me (even though I had a recent version). Instead, do it the older way:
>gem install rubygems-update
Use mysql as the database rather than sqlite:
>rails newproj -d mysql
Create migration with new field to existing table:
>script/generate add_fieldname_to_tablename fieldname:fieldtype
Generate a scaffold for an existing class and table
>script/generate scaffold ClassName fieldname:fieldtype --skip-migration
See all rake tasks:
Migrate specific database:
>rake db:migrate RAILS_ENV=production
Migrate database to specific version:
>rake db:migrate VERSION=2
Migrate to second-to-last version: