search for: option_hash

Displaying 3 results from an estimated 3 matches for "option_hash".

Did you mean: options_hash
2006 Aug 03
5
Store common settings in one file?
Hi, I''m looking for a way to store common settings, such as the application_name or email address from value in a file. I then want to be able to call these settings in my controllers and models? Is there any easy way of doing this? and where would you recommend I save the file ? Thanks scott -- Posted via http://www.ruby-forum.com/.
2006 Jul 17
2
DB Admin Console
...sorting * Supports "activated" via an activated/deactivated button * Supports basic CRUD operations * /admin_panel/model/edit will create a new instance of the model * /admin_panel/model/edit/id will bring up an edit form * the panel is customizable: * by def page_options; { option_hash }; end * by def list_options; { option_hash }; end * /admin_pane/model will provide a two-panel categorized list if :has_many or :belongs_to options are set as a list_option * Clicking a category (on the left list) will bring up items (from the right list) in that category. Thi...
2011 Jul 19
2
ActiveRecord::Base.establish_connection in development and production envs
Hi, guys! Background: I''ve resque workers in my application. These workers do several jobs that associated with DB. In development environment, I''ve no need to provide some additional configuration for db, they are use development database. But then I switching to production env, I set ActiveRecord::Base.establish_connection with my production DB parameters. Problem: When