YOu dont have to update route. It just returns the json. YOu can see it in the html.
On Sun, Mar 20, 2011 at 12:06 AM, Quee WM <[email protected]> wrote: > in my cities controller I have > > def for_provinceid > @cities = City.where("active = true && province_id = ?", > params[:id]).sort_by{ |k| k['name'] } > respond_to do |format| > format.json { render :json => @cities } > end > end > > and in my zones controller I have > > def for_cityid > @zones = Zone.where("active = true && city_id = ?", > params[:id]).sort_by{ |k| k['name'] } > respond_to do |format| > format.json { render :json => @zones } > end > end > > how do i update my routes file that i can access the jason returned by > these two actions. > > -- > 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. > > -- 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.

