Displaying 2 results from an estimated 2 matches for "change_status".
Did you mean:
chan_status
2006 Jun 01
0
question about observer callbacks
...am not really sure how to
accomplish this . for example, say a particular attribute of a Foo record
gets updated, I''d like to be able to say "Foo record 456, status changed to
CLOSED" when the status attributed is updated.
class FooController < ApplicationController
def change_status
@foo = Foo.find(params[:id])
@foo.update_attribute(:status, params[:status])
# observer''s after_update method will get called after the above update,
# but how to send a specific message about the status change???
# i could add a log message directly, but i would have t...
2005 Oct 31
0
SELECT instead of INPUT in InPlaceEditor ?
...JavaScript object ?
I have the following HTML code:
<span class="editable" id="status_<%= payment.id %>"><%=
h(payment.status) %></span>
<%= javascript_tag %Q(new Ajax.InPlaceEditor('status_#{payment.id}',
'#{url_for(:action => :change_status, :id => payment)}',
{highlightendcolor: '#000000', highlightcolor: '#A80000'})) %>
( You guessed it - I'm on Rails 0.13.1 ! )
Thanks !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-spinoffs mailing list...