Dheeraj Kumar wrote in post #1111091: > I'd do this in the client site - with javascript.
JavaScript can easily be disabled by the user. The solution has to be done server side, so Rack middleware is the way to go as Frederick mentioned. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/601c6c5412c9daf370a1be1c3b04706a%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.