Saturday, October 29, 2011

[Rails] Redirect to previous page

In controller, you can specify redirection to go back to previous page that call to this controller by using code below:
redirecto_to :back  
Note: Rails 3.1

No comments:

Clojure has lesser typing error problems than the others well-known dynamic typing languages

Give these snippets a try. // JS function foo () {   bar(1) } # Ruby def foo   bar(1) end ; Clojure (defn foo []    (bar 1)) As yo...