Presenting a JSON or XML view in Rail 3 is directly straight forward as Hobo does not use views, Can not work to do this in the project and the docs are not very light. Has anyone done this?
I am using Rail 3.0.3 and Hobo 1.3.0 pre 29
correct The solution is:
def show hbo_shoe | Hopefully | Expect.json {rendere: json = & gt; @ User.to_json} believes that {{code} is expected for the index:
DIF index hobo_index do | Hopefully | Expect.json {rendere: json = & gt; @ Users.to_json} has an estimate of html {hobo_index} end and
Comments
Post a Comment