neigaard wrote:
> Hi
> 
> I am a newbie trying to make a webservice that talks JSON. I have this
> in my controller:
> 
> ----
> class SchedulesController < ApplicationController
>   def list
>     @schedules = Schedules.all
>     respond_to do |format|
>       format.html # list.html.erb
>       format.json { render :json => @schedules.to_json }
>     end
>   end
> end
> ----
> 
> I have nothing special in my routes, but should the default
> map.connect ':controller/:action/:id.:format' not handle this for me?
> 
> Thank you
> S�ren

Probably -- have you tried?  If it did not work, what errors did you 
get?  Which automated tests failed?

When you say you have "nothing special" in your routes, what does that 
mean?  What does your routes.rb file look like?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to