James C Russell
James C Russell
http://github.com/joshbuddy/http_router
Some clients do not support PUT or it’s difficult to send in a PUT request. For these cases, you could POST the request with a request header of X-HTTP-Method-Override set...
class Application < Rango::Controller format(:json) do |object| object.to_json end end class Post < Application def show(id) if format.html? render "post.html", post: post else display post end end end class Application...
- http://github.com/rails/rails/commit/2f4aaed7b3feb3be787a316fab3144c06bb21a27 - http://www.newmediacampaigns.com/page/browser-rest-http-accept-headers
So user can set name of key, params vs. GET vs session etc. - http://github.com/teamon/merb-flash/blob/master/lib/merb-flash.rb - http://nakajima.github.com/rack-flash
From its CHANGELOG: - rack.logger - Imported Config middleware - Imported ETag middleware - Imported Runtime middleware - Imported Sendfile middleware - New Logger and NullLogger middlewares
Otherwise users will have empty logs. Also go through all the logging stuff and use bang methods when necessary, like for an exceptions and. Standard logger doesn't support these methods,...
quiet do DataMapper::ObjectNotFoundError = Class.new(NotFound) end So you rather than: def show(id) post = Post.get(id) raise NotFound unless post render "post.html", post: post end use just: def show(id) render "post.html",...