Hi, Noel, Thanks for your reply. Here is the whole picture, I hope.
In client page there is a submit button as defined like that,
<div class="form_row">
<% form_remote_tag :url => {:controller => '/group', :action => 'add'},
:html => {:action => {:controller => '/group', :action => 'add'}} do %>
<%= submit_tag "Add!", :class => "submit" %>
<% end %>
In the function Add of controller group, I have the code,
def add
//add the member into the group table
//then go back to the /group/index page
//which will replace the content in webPage "activitypage"
render :update do |page|
page.replace_html ('activitypage', :partial => 'index')
end
return
end
In the backend, the controller:action (here /group/add) worked as expected, but in the client browser, a filedownload window was popped up for saving or opening a file?
I am confused!??????