I want to write rails controller to allow user to update resource through json or xml like update status in twitter.
I tried to create some dummy controller like
def visit
...
end
and add route
map.connect 'users/visit', :controller => 'users', :action => 'visit', :conditions => {:method => :post}
but when I tired post some data with curl -d "var=1" http://localhost:3000/users/visit
It's not work, after that I tried some basic user/create with curl -d "var=1 http://localhost:3000/users
, but this not work either.Do I miss something ?