This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
Restful inplace plugin for Rails
License
simplificator/inplace
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Inplace ======= = What is it Inplace is a simple RESTful in place editor based and tested on Rails 2.1.0. = Installation script plugin/install ... = Usage In your View: <%= editable_content_tag(:span, @artist, 'name', true, nil, {:style => 'border: 1px solid grey;'}, {:okText => 'save it'}) %> In your Controller: if @artist.update_attributes(params[:artist]) format.html { redirect_to(@artist) } format.json { render :json => @artist } else format.html { render :action => "edit" } format.json { render :json => @artist, :status => SOMETHINGELSE_THAN_200} end Based on work by Rick: http://www.bizmeetsdev.com/articles/2008/02/09/editable_content_tag Thanks a lot! Copyright (c) 2008 [Simplificator GmbH - www.simplificator.com], released under the MIT license
About
Restful inplace plugin for Rails
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published