Ask HN: Hash#path_exists? method [ruby] Hi guys, i just write this method: http://gist.github.com/mrThe/5143746 Why? Becouse i can write BaseController method like this:
And use it like this in needed controller action:
instead of
What do you think about this? Is it good idea?/related to Ruby On Rails, i write some RESTful api app and every time will check input params. |
No comments yet