Hi
I don't know how to get rid of this error... I need some help to
understand how to rewrite it
this action is executed from a remote_form  (facebox style), and I
want to keep also the html degraded call

is this issue coming from the close_facebox + redirect_to  ?

  def update
    @auth_source = AuthSource.find(params[:id])
    respond_to do |format|
      if if @auth_source.update_attributes(params[:auth_source])
        flash[:notice] = I18n.t(:notice_successful_update)
        format.html { redirect_to :action => 'list' }
        format.js { close_facebox; redirect_to :controller =>
'settings', :action => 'index', :tab => 'authentification' }
      else
        format.html { render :action => 'edit' }
        format.js { render_to_facebox :partial => "/auth_sources/
edit"}
      end
    end
  end

thanks for your suggestions
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to