Displaying 1 result from an estimated 1 matches for "interfaces_control".
2006 Mar 16
2
please help: "undefined method ''updated?''"
...----------------
class Interface < ActiveRecord::Base
belongs_to :device
belongs_to :cable
belongs_to :patchcable
validates_presence_of :name, :device_id
[...]
end
I want to add a comment to an existing interface, so here''s the update method:
------------------- controllers/interfaces_controller.rb ---------------------
[...]
def update
@interface = Interface.find(params[:id])
unless @interface.device.is_writable(@logged_user)
flash[:error] = ''Keine Berechtigung!''
redirect_to :action => ''show'', :id => @interface.id
else...