similar to: Help with best-practice for Rails Model

Displaying 20 results from an estimated 300 matches similar to: "Help with best-practice for Rails Model"

2006 Apr 04
0
Log4r database outputter
I recently had a look at Log4Net before we decided to go with Ruby On Rails. As part of evaluating Ruby and Rails, I had a look at Log4r as well. We want to use Log4r, and we would have a logger that output all levels to console and stdout, and everything above Warn to a database table. But the deployment of log4r doesn''t come with a database outputter. Is there any reason for this?
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
Posted on stackoverflow but no traction yet: http://stackoverflow.com/questions/12942505/why-does-using-set-trace-func-work-in-some-places-but-cause-unexpected-return-l The following is a generified part of the code in a gem I''m working on: module SomeModule class << self attr_accessor :procedure def log_events(*args) args.flatten!
2012 Oct 31
2
Asterisk and OpenLDAP
Hello guys, i would like to implement authentication for my sip extension with an openldap server. Following this guide http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html i see a template named [sip] to map the information of sip peers into ldap. But i'm not interested to create a template, i would only authenticate sip extensions using username
2009 Sep 10
3
zfs send of a cloned zvol
Hi, I have a question, let''s say I have a zvol named vol1 which is a clone of a snapshot of another zvol (its origin property is tank/myvol at mysnap). If I send this zvol to a different zpool through a zfs send does it send the origin too that is, does an automatic promotion happen or do I end up whith a broken zvol? Best regards. Maurilio. -- This message posted from
2006 Mar 21
5
Getting a time select input
I''m having trouble workign out which ActionView DateHelpers to display a time input for an ActiveRecord field of type :time. I just want an hours input and a minuites input. I can get these with time_select helper using :field_name and :prefix but it gives both hours and miniutes the same name. <%= select_time(Time.now, :prefix => "search", :field_name =>
2012 Aug 22
3
Asterisk 1.8 and 11
Just a little questions, what's the difference between asterisk 1.8 and asterisk 11? Best regards.
2008 May 27
2
order complex aggregation results in 'calculate'
Hi, How would you order the results of a complex aggregation using ''calculate'' (from ActiveRecord::Calculations::ClassMethod)? I have a "legacy" table from which I would like to retrieve some aggregated data, with an ordering. Something like: Entry.calculate(''avg'', ''thevalue'', { :order=> ''avg_thevalue DESC'' })
2011 Aug 08
2
current maturity Samba 4
Hello, it would be nice to know in the community as it is the maturity of the fourth samba at putting in a production environment. It would be wise to put the Samba 4 in a production environment, or would play the most recommended solution samba + openldap? Att, Victor -- ?Encarada do ponto de vista da juventude, a vida parece um futuro indefinidamente longo, ao passo que, na velhice, ela
2013 Feb 17
0
Terapia para Bebés: Aprenda a ajudá-los
Se não pode visualizar este e-mail corretamente, clique aqui <http://www.almasoma.pt/newsletter--terapia-para-bebes-aprenda-a-ajuda-los> . <http://www.almasoma.pt/> Formação em Terapia para Bebés Lisboa, Outono 2013 - Primavera 2016 Workshop: "Baby Clinic", 6 e 7 de Abril de 2013 Conferência de Apresentação, 5 de Abril de 2013 Karlton Terry Pioneiro da assistência aos
1999 Sep 08
0
Connecting a Samba box to NT shares via smbclient
Anyone who can help, We have set up a Samba server running on solaris 2.5 and everything going in the direction of NT to Unix works great. I have experience doing this part. We are having problems getting things to work in reverse which unfortunately is our main reason for installing Samba. We wish eventually to mount two NT machines via samba so they can be included in the current Unix
2006 Sep 27
1
acts_as_taggable with single-table inheritance?
Does anyone have any experience making this work? I installed the plugin and tried the following: class SomeClass < ActiveRecord::Base acts_as_Taggable end class SubClass1 < SomeClass end class SubClass2 < SomeClass end SubClass1.tag_with("tag") and notice that taggable_type = SomeClass when I do SubClass2.find_tagged_with("tag") a SubClass1 object is
2006 Jul 23
1
Mongrel, Apache 2.2, Rails question. HELP!
Sorry to bother you with a Rails "newbie"-like question, but I have been tearing my hair out for a couple of days with the deployment scenario I am trying to setup. I use a service provider that supports multiple domains via Virtual Hosts. I have all the software installed and "working". I want to deploy two apps under my domain and have the following in my .conf file:
2014 Dec 15
0
[ANNOUNCE] libnftnl 1.0.3 release
Hi! The Netfilter project proudly presents: libnftnl 1.0.3 libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem. The library libnftnl has been previously known as libnftables. This library is currently used by the nft command line tool. This release comes with new features available up to 3.18, see ChangeLog for
2015 Dec 18
0
[ANNOUNCE] iptables 1.6.0 release
Hi! The Netfilter project proudly presents: iptables 1.6.0 This release includes accumulated fixes and enhancements for the following matches: * ah * connlabel * cgroup * devgroup * dst * icmp6 * ipcomp * ipv6header * quota * set * socket * string and targets: * CT * REJECT * SET * SNAT * SNPT,DNPT * SYNPROXY * TEE We also got rid of the very very old MIRROR and SAME targets and the
2013 Feb 01
2
[PATCH v2 02/03] HVM firmware passthrough libxl support
This patch introduces support for two new parameters in libxl: smbios_firmware=<path_to_smbios_structures_file> acpi_firmware=<path_to_acpi_tables_file> The changes are primarily in the domain building code where the firmware files are read and passed to libxc for loading into the new guest. After the domain building call to libxc, the addresses for the loaded blobs are returned and
2017 Jan 27
0
[ANNOUNCE] iptables 1.6.1 release
Hi! The Netfilter project proudly presents: iptables 1.6.1 iptables is the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset. It is targeted towards system administrators. This update contains accumulated bugfixes, several new extensions and lots of translations via iptables-translate to ease migration to nftables. See ChangeLog that comes
2006 Dec 18
0
Ferret best practice
Hello, I am searching for Ferret best practice : when to open, close, and optimize a ferret index on a classical web application where many people add, read, and sometime delete elements. Do you always keep your index open ? or do you open and close it on every transaction ? Do you optimize your index often ? on every insert ? on every 1000 insert ? or every night ? Thanks for you feedback
2006 Nov 04
0
<label for=..." /> best practice?
I see a number of code samples on the list lately using <label for="..." /> and this is a new construct to me. I see what it does, but I''m certainly no designer and was wondering if someone could walk me through when to use it vs. the "old style" of just putting text where you need it, and advantages of using it vs. not. Thanks -- Voluminous documentation is
2006 Aug 06
0
Best practice: installing plugin assets in rake task or install.rb?
I noticed that a few plugins come with rake tasks to install additional assets. In Rails 1.1.4 there''s a hook file, install.rb, that is run when after the plugin has been installed (edge Rails has uninstall.rb, too). Wouldn''t it be nicer to use this (these) hooks to install (remove) plugin specific files automatically? Preferrably existing (different) files are overwritten
2006 Jul 13
0
best practice on making a searchable/filterable list?
Hi, I have many pages that list information (modified from the scaffolding). I would like to include a box at the top of these pages that has some search criteria with drop downs, date ranges, etc. When the user submits, the controller then adds appropriate conditions to the find method, and the matching records are displayed with the search form maintaining the users selections. I have been