search for: see_oth

Displaying 2 results from an estimated 2 matches for "see_oth".

Did you mean: see_other
2007 Oct 26
15
Adding see_other method to ActionController
...status codes have distinct meaning. 303 points to the newly created resource, but 301/302 say "this resource moved, please send your POST again to this new location". In 2.0 we get the convenience of: def create item = Item.create(params[:item]) redirect_to item, :status=>:see_other end Regardless, I think there''s a strong argument for adding a see_other method. As syntactic sugar, it will help developers who are not quite aware of the difference between 302 and 303. Another possibility is changing redirect_to, so it defaults to return 303 whenever it responds...
2010 Nov 01
0
Vimeo API Error.
...: warning: already initialized constant MOVED_PERMANENTLY /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/http.rb:27: warning: already initialized constant FOUND /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/http.rb:28: warning: already initialized constant SEE_OTHER /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/http.rb:29: warning: already initialized constant MOVED_TEMPORARILY /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/http.rb:29: warning: already initialized constant TEMPORARY_REDIRECT /usr/local/lib/ruby/gems...