Observe_field

Hi
I have in the controller

def sd_activity_attach_file
@sd_activity=ServiceDeskActivity.new(params[:sd_activity])
@sd_activity.save
@sd_activity_attachment=ServiceDeskActivityAttachment.new(params[:sd_activity_attachment])
@sd_activity_attachment.save

  responds_to_parent do
    render :update do |page|
      page[:sd_create_activity_ui].replace_html :partial =>

“service_desk_part/view_sd_activity_details”, :object => @sd_activities
end
end
end

The problem is the database get updated but in any case
view_sd_activity_details partial is not loaded…I have an observe_field
in the file _view_sd_activity_details.rhtml…And the interesting thing
is when I commented this observe_field the page is loaded…WHAT may be
the problem…I am attaching
_view_sd_activity_details.rhtml

Please help
Sijo

On Mar 24, 4:17 am, Sijo Kg [email protected] wrote:

Hi
I have in the controller

def sd_activity_attach_file
@sd_activity=ServiceDeskActivity.new(params[:sd_activity])
@sd_activity.save
@sd_activity_attachment=ServiceDeskActivityAttachment.new(params[:sd_activi ty_attachment])
@sd_activity_attachment.save

Your partial uses @sd_ticket, but your controller isn’t defining it.

Fred

Hi Frederick C.

Thanks for your reply..

Sijo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs