Serving formats at named route?


#1

I am using a named route, like /abc.
I have put…

respond_to do |format|
format.html
format.json (render :json => @variable)
end

in method.

But when I do /abc.json, it doesn’t work.
Any hints?
Thanks.


#2

Do you need /abc.:format in routes.rb for this?

2009/4/27 Vapor … removed_email_address@domain.invalid


#3

Colin L. wrote:

Do you need /abc.:format in routes.rb for this?

Great, thanks!