similar to: How can I have two controllers use the same 'category' model if they aren't related?

Displaying 20 results from an estimated 800 matches similar to: "How can I have two controllers use the same 'category' model if they aren't related?"

2006 Aug 09
11
Query Offset Parameter problem
Greetings, I''m trying to make a simple logging application that just displays the last few rows of information in the log. In order to do this, I am trying to use the ":offset" option for find. However, I am not getting the results I expect. For testing purposes, the query is being run against a table (MySQL) that contains 11 records. According to the RoR documentation,
2012 Jun 08
7
filter children with acts_as_tree
Hello Experts, I have a tree of categories in this category object there is a property called type. the root categories have no type but the children have. so how I can get all the roots with filled in children that have category type = ''B'' for instance. I tried to run Category.roots then delete children With a category not equal to ''B'' but this causes a major
2007 Dec 30
1
deliver: keep existing From_ line
Hi! I'm using procmail to filter my email. (I have to use it because of various features that are not supported by sieve.) However, I'd like to deliver mail to my mboxes using dovecots deliver program in order to update index files and speed up mbox access. Using "| $DELIVER -m <mboxname>" in my procmail receipes, everything works fine, except that the envelope sender
2007 Sep 04
2
Pie chart eith Gruff
Does anybody know how to create a pie chart in Gruff without percentage but actual numbers? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2006 Apr 06
4
Record retrieval in Many-to-many using :through not working
Hello, I get an error while retrieving records from the following model structure. Tables foods - id, food foodallergies - food_id, symptom_id, a few other columns symptoms - id, symptom Models class Food < ActiveRecord::Base has_many :foodallergies has_many :symptoms, :through => :foodallergies end class Symptom < ActiveRecord::Base has_many :foodallergies has_many :foods,
2013 Nov 18
2
[LLVMdev] Broken build: r194813
Hey guys, My local build is broken after: >r194813 | glider | 2013-11-15 08:13:01 -0500 (Fri, 15 Nov 2013) | 2 lines > >[ASan] Add the configure+make rules for building the ASan runtime for iOS > simulator. Tim Northover was kind enough to track this down to a dependency on the “iphonesimulator” SDK. How should this issue be resolved? I'm currently following the receipe to build
2008 Jun 20
4
Handling content pages (CMS-like)
Hello list, I wonder how you guys handle content pages? Often described as "static" pages. However, I don''t like to call them "static" because these pages often do use some minor dynamic content. This is what I like to think of as the "website" part of the web application. Content that does not have complex logic behind it. I had to handle it in the
2019 May 20
2
self compiled 4.10.3 replication failure.
On Mon, 20 May 2019, Vincent S. Cojot via samba wrote: > > On Mon, 20 May 2019, Tom Diehl via samba wrote: > >> On Sat, 18 May 2019, Nico Kadel-Garcia wrote: >> >> Well OK maybe I should have said self compiled using the instructions @ >> https://wiki.samba.org/index.php/Build_Samba_from_Source#configure and >> the package list from >>
2006 May 20
5
Can lmer() fit a multilevel model embedded in a regression?
I would like to fit a hierarchical regression model from Witte et al. (1994; see reference below). It's a logistic regression of a health outcome on quntities of food intake; the linear predictor has the form, X*beta + W*gamma, where X is a matrix of consumption of 82 foods (i.e., the rows of X represent people in the study, the columns represent different foods, and X_ij is the amount of
2006 Feb 24
1
Help a n00b?
So I''m trying to do that hot new thing with AJAXy forms: http://idiet.toasterwaffles.com/foods/list Here''s the relevant code in list.rhtml (for the form portion) <tbody> <%= render_collection_of_partials "list_stripes", @foods %> </tbody> <tfoot> <tr id="addFood"><%= form_remote_tag( :html =>
2006 Apr 04
4
Help with many-to-many using :through
I am using many-to-many using :through since I need to store additional information in the join table. I am doing this and it seems to work. I want to verify that this is the best way to do this. Tables foods - id, food foodallergies - food_id, symptom_id, a few other columns symptoms - id, symptom Models class Food < ActiveRecord::Base has_many :foodallergies has_many :symptoms,
2008 Apr 14
2
Histogram Label Font Size
Hi! I'm having a trouble changing font size of histogram label. I have tried help(hist), but I couldn't find anything explain how to fix label's font size. Could you help me please? Thank you. _________________________________________________________________ Going green? See the top 12 foods to eat organic. 1N1653A [[alternative HTML version deleted]]
2008 Nov 03
1
Xen AMD64 and dom0 now official in Lenny?
Hello, I see the new Xen packages now really in Sid and even in Lenny on packages.debian.org: http://packages.debian.org/search?keywords=linux-image+xen+amd64&searchon=names&suite=testing&section=all http://packages.debian.org/lenny/xen-linux-system-2.6.26-1-xen-amd64 Does this mean there is now official Xen amb64 and dom0 support in Lenny? I am running it now for a while without
2013 Nov 19
0
[LLVMdev] Broken build: r194813
Hi Cameron, I'm planning to address this issue today. HTH, Alex On Mon, Nov 18, 2013 at 9:45 PM, Cameron McInally <cameron.mcinally at nyu.edu> wrote: > Hey guys, > > My local build is broken after: > >>r194813 | glider | 2013-11-15 08:13:01 -0500 (Fri, 15 Nov 2013) | 2 lines >> >>[ASan] Add the configure+make rules for building the ASan runtime for iOS
2013 Nov 19
1
[LLVMdev] Broken build: r194813
Hi, can you please check the problem is fixed by r195125? On Tue, Nov 19, 2013 at 2:35 PM, Alexander Potapenko <glider at google.com> wrote: > Hi Cameron, > > I'm planning to address this issue today. > > HTH, > Alex > > On Mon, Nov 18, 2013 at 9:45 PM, Cameron McInally > <cameron.mcinally at nyu.edu> wrote: >> Hey guys, >> >> My local
2006 Apr 14
6
Login Generator with Extensible authorisation
I want my web app to have a signup/login generator but have 2 tiers of users - normal and premium. There seems to be lots of login generator and engines with scattered tutorials about extensible authorisation and Im lost as which is the ''best'' or most ''easy to use'' solution. Anyone had success in this area? -- Posted via http://www.ruby-forum.com/.
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code: require ''rexml/document'' include REXML # classes to represent the objects and relationships in the xml file class Article attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body, :fblurb, :fimage, :att, :source, :copy, :brand end # the base parser class BaseXMLParser def initialize(filename)
2011 Mar 22
2
adding vertical segments to an xyplot in lattice
I have a dataframe that looks like this: > str(chr) 'data.frame': 84 obs. of 7 variables: $ county: Factor w/ 3 levels "Broome","Nassau",..: 3 3 3 3 3 3 3 3 3 3 ... $ item : Factor w/ 28 levels "Access to healthy foods",..: 21 19 20 18 16 3 2 6 17 8 ... $ value : num 8644 15 3.5 3.9 7.7 ... $ low : num 7897 9 2.5 2.6 7 ... $ high : num 9390
1998 Oct 05
1
SAMBA AND NT SP3
Hi Andrew I'm not sure if this will help you any but I have found that any NT WS / Server with a Service Pack 3 installed. The samba shares report a error "user not allowed to login from this station" error (or close to that). Win 95 / 311 and NT WS (sp1) are all ok. ------------------------------------------------------- Shaun Lennox Tel : 27-83-270-5132 P.O. Box
2002 Sep 02
3
Slow Samba Printer initialisation, status, and printing
OK, I have been wrestling with this for two weeks now, so somebody please help ! We have an existing Samba Print Server, running RedHat linux, kernel 2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new PC, the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer server is running Samba 2.2.5, new printer server is running samba 2.2.5, and Slackware 8.1,