Vote count:
0
I worker with 'Device gem' for authentication .
but i want get 'json' unauthentic access
for API on 'index'
this is my coding :-
def index
@categories = Category.find(:all)
respond do |format|
format.html
format.json {render :json => @category_to_json }
end
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire