-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Eric Draut edited this page Dec 26, 2015
·
15 revisions
Thin Man is a library of AJAX behaviors with Rails helpers. It is completely independent of your look-and-feel, you can bind a behavior to your own dom elements with your own css.
Keep Requests and Responses Simple. The basic principle of Thin Man apps is to have a single request and a single response for a single resource.
Handle Side Effects with Foreign Office. If your request has side effects, you'll want to use Foreign Office to allow your server to broadcast state changes that have side effects on the page, like updating calculated or redundant values, loading or replacing related page sections, etc.
In your gemfile
gem 'thin_man'
<%= ajax_link 'edit', edit_user_path(user), {}, dom_target(user) %>