Gitte Wange
2006-Jul-16 01:09 UTC
[Rails] in_place_edit-like functionality in my controller
Hello,
I''m trying to extend the functionality of in_place_edit and would
like to have a function in my controller that populates methods for
requested object/methods (just like in_place_edit does).
Here''s some test code I tried to make work (from my controller):
def do_some_edit(object, field)
logger.info("We are editing")
end
do_some_edit(:item, :title)
But all I keep getting is an error telling me:
undefined method `do_some_edit'' for Admin::BudgetController:Class
I would say that do_some_edit is defined indeed but maybe I''m missing
something here.
I hope someone out there can enlightent me :-)
Greetings,
Gitte Wange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1881 bytes
Desc: not available
Url :
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060716/4be779a1/smime-0001.bin
