mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 19:48:48 +01:00
14 lines
No EOL
279 B
Text
14 lines
No EOL
279 B
Text
InPlaceEditing
|
|
==============
|
|
|
|
Example:
|
|
|
|
# Controller
|
|
class BlogController < ApplicationController
|
|
in_place_edit_for :post, :title
|
|
end
|
|
|
|
# View
|
|
<%= in_place_editor_field :post, 'title' %>
|
|
|
|
Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license |