Hey Rafael. You should give my AppConfig plugin a try: http://github.com/merbjedi/app_config
just add this to your config/dependencies.rb and run "thor merb:gem:install" to get it installed: dependency "merb_app_config" Then you can just create a file config/app_config.yml and put any settings in it like so: items_per_page: 25 site_name: "Site Title" default_timezone: "PST" and use AppConfig.items_per_page whenever you need to grab the setting. On Mar 16, 7:57 am, Rafael George <[email protected]> wrote: > Hi guys, > > Which is the best way to put global variables in my application things > like 'items_per_page' for my pagination needs. > > Thanks. > > -- > Rafael George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
