In PHP, i would have a config file that says something like $account = 'on' and then throughout my project, i would have if else based on whether that variable equaled on or off.
Now im trying to do something similar in RoR. However, i am pretty new to RoR and considering all the features and implementations rails have, im thinking there has to be a method to basically take a block of code, wrap it in something that says if on, display, if not, dont.
Any suggestions?
1 Answer