Rails- Using a set of functions across the view , controller and model

Posted by ming yeow on Stack Overflow See other posts from Stack Overflow or by ming yeow
Published on 2010-05-23T01:22:26Z Indexed on 2010/05/23 1:30 UTC
Read the original article Hit count: 322

Hi folks, i have a function that converts an array to a hash which i would like to use across all the model, controller and view files in the rails app.

Does this violate some core design principle, or am i missing something really obvious?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about mvc