So here is what I have:
def index
@profiles = Profile.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @profiles }
format.json { render :json => @profiles }
end
end
I would like to add rss, atom and possibly some custom ones such as one that returns the image for the profile.
You can register new ones like this (place this in your config/environment.rb, one of the config/environments/*.rb files or in a file under config/initializers):
As for the default ones: