Forum: Ruby on Rails Edit in Place in 1.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A3f2156480bc18e8232f99626cdcfe63?d=identicon&s=25 Andrew D. Goodfellow (Guest)
on 2006-04-03 21:36
(Received via mailing list)
Does anyone have a good example or know of some documentation about
how to implement "Edit in Place" using Rails 1.1? Like the
functionality in Flickr... I've googled and googled and can't find any
good documentation. Maybe it's because 1.1 is so new? Thanks in
advance.

-Andy
Bc80625db60e9db4394c51d6c1892b49?d=identicon&s=25 Derrick Spell (Guest)
on 2006-04-03 21:49
(Received via mailing list)
Have you looked into Scriptaculous?

http://script.aculo.us

-Derrick
A3f2156480bc18e8232f99626cdcfe63?d=identicon&s=25 Andrew D. Goodfellow (Guest)
on 2006-04-03 21:58
(Received via mailing list)
A little... I see this page:
http://wiki.script.aculo.us/scriptaculous/show/Int...
and then this page:
http://blog.codahale.com/2006/01/14/a-rails-howto-...
(which seems to be down now)

But isn't everything a little bit tighter/different now with 1.1? I've
seen the one older Edit in Place example above, but now with 1.1 I
figured there was a "better" way to do it.

-Andy
A3f2156480bc18e8232f99626cdcfe63?d=identicon&s=25 Andrew D. Goodfellow (Guest)
on 2006-04-03 22:16
(Received via mailing list)
Ok, this example is back up now:
http://blog.codahale.com/2006/01/14/a-rails-howto-...

Is this the way we should still do Edit in Place with Rails 1.1?

-Andy
467a76da87d56dab5e6f51b4d2e19c66?d=identicon&s=25 Martin Tomes (Guest)
on 2006-04-04 10:32
(Received via mailing list)
Andrew D. Goodfellow wrote:
> Does anyone have a good example or know of some documentation about
> how to implement "Edit in Place" using Rails 1.1? Like the
> functionality in Flickr... I've googled and googled and can't find any
> good documentation. Maybe it's because 1.1 is so new? Thanks in
> advance.

In the view use in_place_editor_field and in the controller use
in_place_edit_for.

E.g.,
<%= in_place_edit_for :meeting, :title %>

and

in_place_edit_for :meeting, :title


--
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'

Visit http://www.subversionary.org/
This topic is locked and can not be replied to.