November 13, 2008
Older: Can't Miss RubyConf Wrapup
Newer: Sinatra for IRC
Creating and Integrating Bookmarklets with Rails
If your application stores information, one of the most critical keys to success is allowing users to get that information in quick. If the process is a pain, they’ll move on to something else. One way to allow for easy and quick data entry is a bookmarklet. I recently created a couple for an app I am scratching an itch with and thought I would share the results with you.
Two FYIs: For some reason I sniffed twice during the recording, but I decided to leave them both in to add some “reality.” Also, the ND YouTube tab was open because I was going to show how the tumblr bookmarklet works, not because I forgot the tab open.
8 Comments
Nov 13, 2008
Hi John. I’m interested but I can’t find any video.
Nov 13, 2008
@srb There is a link at the bottom of the post to the video with a QuickTime logo by it.
Nov 13, 2008
My bad. I browse with noscript and flashblock so I couldn’t see the video when I clicked the link.
Nov 13, 2008
Love it, jnune. Will be using it in my app for sure.
Nov 13, 2008
@srb – No problem. Glad you got it working.
Nov 13, 2008
Awesome screencast, John.
Do you happen to know how to modify the code to preserve linebreaks if the user select multiple paragraphs?
Nov 13, 2008
@jeff – It should automatically preserve line breaks in the database. You just have to make sure you convert the line breaks to paragraphs or something when you output. Try using textilize, acts_as_textiled, or simple_format.
Nov 13, 2008
John, indeed, you’re right. Apologies :)
Sorry, comments are closed for this article to ease the burden of pruning spam.