<% title "User: " + @user.first_name + " " + @user.last_name %>

This edit mode demo app shows how edit_mode looks like.

You can either click on the information to directly edit them via best_in_place, or you can use the 'edit' links to activate the edit mode.

edit cancel save

Basic Information

First Name: <%= best_in_place @user, :first_name %>

Last Name: <%= best_in_place @user, :last_name %>

edit cancel save

Additional Information

Date Of Birth: <%= best_in_place @user, :date_of_birth %> delete

add

<%= link_to "View All Users", users_path %>