Displaying 1 result from an estimated 1 matches for "render_calendar".
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
...-----------------------
class PeopleController < ActionController::Base
def index
@people = Person.find :all
respond_to do |format|
format.html # renders index.rhtml
format.js # renders index.rjs
format.xml { render :xml => @people.to_xml }
format.icl { render_calendar(@people) }
format.atom do
render :action => "atom", :content_type => Mime::ATOM
end
end
end
end
GET /people
=> returns HTML
Accept : text/javascript
GET /people
=> returns RJS
GET /people.xml
=> returns XML
Accept: text/html
GET /people.xml
=&g...