It does not matter how slow you go so long as you do not stop. — Confucius
def last @movies = Movie.find(:all, :limit=>15, :order=>'created_at desc') render :xml => @moviesend
It use the generic method to_xml in active_record I think...Didn't check but I think there is also "to_json" to have a json view of the data ;)
Post a Comment
1 comment:
It use the generic method to_xml in active_record I think...
Didn't check but I think there is also "to_json" to have a json view of the data ;)
Post a Comment