I want to generate new.json.rabl page to create new post first of all i created in post folder new.json.rabl file
object @post
attributes :content, :photo
and localhost:3000/post/new.json return
{"post":{"content":null,"photo":null}}
how can i send content and photo values to rabl
You probably have a method new in your posts controller. There, if you want rabl to render the content and photo values, you need to put: