similar to: sti + namespace

Displaying 20 results from an estimated 200 matches similar to: "sti + namespace"

2004 Nov 28
0
COM port for weatherstation
Hi, we are running some Debian-linux boxes and want to run a Feger-weatherstation under wine to get the weatherdata directly on the same server as our semi-public weather web (http//81.33.7.96). I installed wine (version is now 0.0.20040713/1.3) under Debian sarge and then the Feger software. My windows partition was an empty FAT32 partition. I cannot get the COM port working and I do not know
2012 Feb 21
3
Using earth.dist function
Hi Everyone, I am a graduate student who will be using R to do my analysis. I need to do a spatial analysis, and the first step is to calculate the geographic distance between my study sites. I am hoping to use earth.dist because it allows for multiple pairwise distances to be calculated at one time. I have done a sample calculation, and I seem to have a problem between the steps of using
2006 Nov 21
5
acts_as_ferret with STI models
Can acts_as_ferret search only one of the inherit models in the hierarchy of STI models? Say you have Contents, with types articles and comments. I know that you do Contents.find_by_contents, but can you also create indexed for Comment and Articles? Thanks for you help Miguel -- Posted via http://www.ruby-forum.com/.
2006 Feb 07
4
Ruby, Rails & Inheritance
Hi! I am looking for a solution for the following problem: Some of my models share some attributes and also was in need for some extra features, so I created a class "RecordWithFeatures": ----------------------------------------------------------------- class RecordWithFeatures < ActiveRecord::Base # @Override def self.descends_from_active_record? superclass ==
2016 Aug 26
0
[PATCH v8 16/18] ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card
This patch enables the uniperif players 2 & 3 for b2120 boards and also adds the "simple-audio-card" device node to interconnect the SoC sound device and the codec. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen at st.com> Signed-off-by: Peter Griffin <peter.griffin at linaro.org> --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++++++++++++++++++++++++++++++++++++ 1
2016 Aug 26
0
[PATCH v8 13/18] ARM: STi: DT: STiH407: Add sti-sasg-codec dt node
This patch adds the dt node for the internal audio codec IP. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen at st.com> Signed-off-by: Peter Griffin <peter.griffin at linaro.org> --- arch/arm/boot/dts/stih407-family.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 45cab30..d1258d5
2004 Nov 19
18
SingleTableInheritance Considered Harmful
Here''s the text of a quick note I''ve added to the Inheritance wiki page. I''m actually proposing that it would be a good idea to drop automatic single table inheritance and force people to declare it explicitly. There are two reasons for this: 1. Implicitly doing it unnecessarially limits your use of inheritance where you really need it: in your object-oriented
2006 Aug 04
2
problem eager loading with sti
Here''s the setup (working off Rails 1.1.4): Class Project belongs_to :employee Class Employee < Person has_many :projects When I try to paginate(:employees, :include => :projects) I get the error "Association named ''projects'' was not found; perhaps you misspelled it?" I can :include other models that the Person class has_many or habtm of, and if I
2006 Aug 05
0
STI or Serialize attributes to one column?
I''m considering serializing attributes of extended classes to one column instead of using STI. Each of the extended classes will have associated views to render the UI based on the serialized params. The references to the associated views will be stored in the model. I don''t need to query the params. I''d like to hear about any pitfalls and experiences of others who may
2006 Jul 28
0
STI hiding attributes
I''ve written an extension to AR to allow hiding of attributes(aka columns) in AR objects. If there''s interest in it I''ll roll it up into a plugin. Here''s an example: (straight from Agile Web Dev) # The table create table people ( id int not null auto_increment, type varchar(20) not null, /* common attributes */ name varchar(100) not null, email
2006 Apr 01
1
STI with_scope on parent - bug or feature?
Hi, It seems that setting a with_scope on the parent class doesn''t do anything MyClass.with_scope(:find=>{:conditions=> ["somecol = ?", ''val'']}) do @ext_pages, @ext_rows = paginate :my_extended_class, { :per_page => 13 } end # this doesn''t generate WHERE somecol=''val'' In order for scope to work you have to call
2006 Apr 02
0
STI and through
I''m trying to understand how to do the following, but am finding myself stuck. I have three main tables; here are the first two: CREATE TABLE reference_items ( "id" integer primary key, "type" varchar(20), "title" varchar(255), "year" year(4) ); CREATE TABLE "agents" ( "id" integer primary key, "type"
2006 Apr 23
0
Severe STI, HABTM with Attributes and 1.1
All, I had been working on a project that was using STI to a very high degree. It also was using a HABTM table that had a couple extra attributes. It seems that with 1.1 push_with_attributes is deprecated and I am having a bit of trouble moving things to using has_many :through The original schema I had worked like this : create_table "nodes" do |t| t.column "title",
2006 Mar 08
0
combining STI + polymorphism + rich self HABTM : how to ?
Hi all, I need to model simple typed polymorphic relations: ''John'' [''works_for''] ''Bill'' ''John'' [''speaks_for''] ''Microsoft'' ''Microsoft'' [''hold_shares_of''] ''Apple'' I''m having a hard time combining : - S.T.I.
2006 Mar 16
1
Problem with STI and validation
OK. Here''s another one on STI (thanks for the help of all of you with my previous STI question, and I promise to update the wiki with the info). I''m having a prob with validation with the sub-classes. It''s a bit long-winded to explain, but I''ll post all the logs and code if there''s no obvious answers. Basically, however, I have validation on the
2006 Mar 22
3
STI and ActiveRecord attributes unprotected
Hi, This does not seem to be covered anywhere. Since base class extends ActiveRecord with a table that has fields for all heirs, would that mean that any heir class can access any of those attributes, including ones that belong to other heirs? Or I am missing something? -- Posted via http://www.ruby-forum.com/.
2006 Feb 07
0
Article: Fun with STI
http://kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance I wrote an article about how to use rails and single table inheritance to implement multi-page web forms with incremental validation. I''m looking for any feedback, and I hope that the development technique is useful. I just ran through the tutorial myself, and everything is working for me on my
2006 Feb 22
0
STI and Inheritance
Hello ~ I have run into an issue with some of my objects not behaving as I expect. Basically I am using STI on my Users table and have several types of users. BaseUser --UserType1 < BaseUser --UserType2 < BaseUser etc.... Recently when I create a UserType object and save it to the database it ignores the validation rules for the parent class BaseUser. Furthermore the after_validation
2006 Jan 02
0
Best practice for registering/discovering STI subclasses?
Folks, I''m fairly new to Rails, and I''ve Googled around for an answer to this question with no luck... Consider a little blog application that has uses single-table inheritance for the handful of different content types via a Content base class and subclasses like FooContent and BarContent. That part all works well for me. Now consider the view that presents actions to the
2006 Jan 10
0
bug? : STI and :include => fk and class_name MUST be specified
I suspect this is a bug. Or a limitation. Problem: ---------------- When you include a STI class in a ''find'' : @results = Result.find :all, :include => :event , you are forced to specify the fk and the class name : belongs_to :event , :class_name => "Event", :foreign_key => "event_id" . Full code: ----------- class Event <