Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Unable to use JSON format URL

#110

Tried to follow the webcast with my own data model. Created a model (chatter) and tried to add one. Worked fine. Now, tried to load the data in a json format:
http://localhost/recess/gchat/chatter/1.json

This errors out with
Unable to provide desired content-type. Does the view "chatter/details" exist?
Location: Line 91 of C:\xampplite\htdocs\recess\recess\recess\framework\DefaultPolicy.class.php

I then took the advice of the comment in getViewFor and removed the conditional, and presto, JSON support works.

Question: Why doesn't it work to start with? And is the fix I did the correct one?

Version: Latest from SVN as of Jan 18, 2010.

Reported by benjaminhill (at gmail) · January 18th, 2010 @ 04:43 PM

State: new
Milestone: 0.20
Assigned to: Kris Jordan Kris Jordan

Activity

  1. Keuntae Shin
    Keuntae Shin
    • Milestone order changed from 0 to 0

    Hey, u must write this annotation to your controller.class

    Library::import('recess.framework.forms.ModelForm');

    /* !RespondsWith Layouts, Json !Prefix king/ / class kingController extends Controller {

    like this, your annotation should contain a comma

    • !RespondsWith Layouts Json <-- Wrong
    • !RespondsWith Layouts, Json <-- Right

    September 21st, 2010 @ 12:50 PM

  2. Erik Diver
    Erik Diver

    If be honest I think the essay service can be a good way out for many blogs!

    November 9th, 2011 @ 11:14 AM

  3. Erik Diver
    Erik Diver

    I must admit that your resume writers are very much professional

    November 13th, 2011 @ 12:49 PM

  4. janesamz
    janesamz

    Judging from the onslaught of books, articles, and blog posts extolling Steve Jobs' virtues and condemning his vices.
    wholesale cheap jerseys

    October 28th, 2012 @ 11:33 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.