How to do a Switch based on controller with ruby on rails?

Posted by Rubytastic on Stack Overflow See other posts from Stack Overflow or by Rubytastic
Published on 2010-06-01T10:19:58Z Indexed on 2010/06/01 10:23 UTC
Read the original article Hit count: 265

Filed under:
|
|

How could one do switch in ruby on rails something like:

case controller "home" do home case controller "about" do about else do home

© Stack Overflow or respective owner

Related posts about ruby

Related posts about controller