Displaying 1 result from an estimated 1 matches for "show_123".
2007 Jan 17
1
AJAX GET requests returning "uninitialized constant Mime::RJS"
...te:
link_to_remote("More info", :url => user_path(user),
:update =>
"show_#{user.id}",
:method => :get) #
NOTE: "GET" request
This then updates a hidden div ("show_123" for example). My
users_controller.rb is standard:
def show
@user = User.find(params[:id])
respond_to do |format|
format.rjs
format.html { raise "AJAX only for this method" }
format.xml { render :xml => @user.to_xml }
end
end
(The format.html...