cannot render json without login. What should i do?

Posted by logesh on Stack Overflow See other posts from Stack Overflow or by logesh
Published on 2012-08-31T09:32:01Z Indexed on 2012/08/31 9:38 UTC
Read the original article Hit count: 159

I am new to rails and i am trying few examples. I have login page using devise authentication and i have one more page where user can store their details, view, edit and delete the details. It is displayed in html format, once login is done. I want to produce json for iPhone so if i call as localhost:3000/posts/1.json it does not show json but after login i can see the json. so how shoud i do this? Pls help me.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3