# Render the result
respond_to do |format|
- format.html { render :format => :rjs, :content_type => "text/javascript" }
format.rss
- format.js
format.xml
- format.json { render :json => @notes.to_json }
+ format.json
format.gpx
end
end
respond_to do |format|
format.xml
format.rss
- format.json { render :json => @note.to_json }
+ format.json
format.gpx
end
end
format.rss { render :action => :list }
format.js
format.xml { render :action => :list }
- format.json { render :json => @notes.to_json }
+ format.json { render :action => :list }
format.gpx { render :action => :list }
end
end