similar to: single table inheritance problem

Displaying 20 results from an estimated 400 matches similar to: "single table inheritance problem"

2006 Feb 01
8
ruby equivalent of isset()
Hi, Is there a way to test if a certain (local) variable has been initialized? I''d like to do something like if isset(myvar) and myvar.true? #some code else #default behaviour end I have a lot of shared views that I call with params such as { show_pager => true Instead of having to explicitly say show_pager => false it should be possible to make false a default value, right?
2007 Mar 01
0
FastCGI and Apache. Anybody know what can cause this error?
Does anybody know what could possibly be causing my error? Somehow action_controller got into a state where it was retuning not found for about 4 out of every 5 requests, seemingly arbitrarily. Has anybody else ever experienced this? I''ve heard that apache and fastcgi is not the best solution, do you think this is fcgi''s fault? Could it be a bug in my ruby code? Could it be a
2009 Oct 21
1
[PATCH node] Renamed files and menu items for node administration:
define domain -> add virtual machine (addvm) undefine domain -> remove virtual machine (rmvm) create domain -> start virtual machine (startvm) destroy domain -> stop virtual machine (stopvm) list domains -> list virtual machiens (listvms) Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- Makefile.am | 8 +- nodeadmin/adddomain.py |
2008 Apr 07
2
Simple active record issue. I must be missing something.
Here''s a seemingly simple ActiveRecord use case. I have Projects and Users. Each project has a single team leader as well as a review team that consists of several users. I would like to use the same User model for authentication and just reference these users in my Project model. I tried this but got an "unknown column" error (for User.project_id) class Project has_one
2006 Feb 05
2
request.request_uri in production environment?
Hi, What''s the problem with this line? <%= ''height="750" valign="top"'' if request.request_uri =~ /survey_result/i %> No problem with development environment but when uploading to server I get application error. And is there a better way to do this? Thanks
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
Moved the node administration elements to a separate submenu. Created a new network administration menu. * users can define a network * users can create a network * users can destroy a network * users can undefine a network * users can list existing networks, including details Each new command is also available as a separate command line executable as well. Signed-off-by: Darryl L. Pierce
2006 May 19
2
Help with using method_missing to create template path
I have a site (for an academic conference) that I want to convert to RoR - both as a learning exercise and to ease further updates and development. There are a number of child pages for each conference (past and future), but these pages are different for each conference (not same child pages for each conference). The URLs are along the lines of: /conference/2000/keynotes
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2014 Sep 23
1
Multicast AMI?
Hi! Maybe I have overlooked something, but I am sort of facing the following problem. I always used the AMI interface to allow (older) client programs on Windows to use their TAPI client code in order to communicate with Asterisk servers. The functionality is basically minimal as only incoming calls need to get detected and there are occasional outgoing ones. For the outgoing calls, a regular
2006 Jan 28
1
Advice on Optimization, and where to put what?
In my last post I was asking how I could check for the existance of a record before inserting a new one and this was the helper method that I was using to do this: def already_friend_of?(friend) begin self.friends.find(friend.id) true rescue false end end I was told that this is not very efficient, as it hits the db every time I call it. I completely agree and would like to
2010 Dec 31
6
HTTP Accept header wildcard breaks rails app
The thunderstone crawler (http://search.thunderstone.com/texis/ websearch/about.html) sends the folliowing HTTP accept header when requesting pages Accept: text/*, application/javascript, application/x-javascript This results in a "Missing template" exception text/* is valid. How do I tell my rails app to treat this as rhtml by default instead of returning a 500? Missing template
2006 Jan 31
11
ez_where plugin updated features.
Friends- I wanted to let people know that there is a new experimental release of this plugin. I would love feedback on syntax and features. There is now a full test suite with fixtures that covers all the available syntax. Look at the test suite for more syntax possibilities. There have been many additions since my last release. Fabien Atelier has been working on this with me and has
2004 Nov 04
6
Recent changes in qdisc/cls APIs
Folks, I''ve been changing some of the classifier APIs especially bits related to the rate estimator and statistics between 2.6.8 and 2.6.10. This probably broke some external classifiers such as esfq. If you happen to use one of them just send me the correspondig patch and I will fix it up for you. Cheers _______________________________________________ LARTC mailing list /
2006 Feb 15
9
newbie-> help understanding "magic" behavior
I am trying out ROR for the first time[1], and have much PHP poisoning to overcome in my mental baggage. That said, I was delighted to find that I could make a link from a "show" page to the next record in the database by simply adding @next_page = Content.find(params["id"].next) to my content_controller.rb and then constructing a link to it within my show.rhtml. The
2006 Mar 17
1
Design / Pattern / Scaffold for has-and-belongs-to-many ?
Is there a standard practice for providing a UI into HBTM relationships? I have a model User, and a model Training, and I need to manage both relationships -- show me all the people that have training X, but also show me all trainings user U has. And, of course, "Lookup this user and then add/remove trainings for this person" or "Lookup this training and add/remove
2006 Jan 27
2
User.already_friend_of(friend)?
I have a User model who HBTM Friends (class User). I would like to check for the existance of a user in the friends table before actually adding them (in case they were already added as a friend.) I have a method called already_friend_of?(friend) defined in my User model, but I am not sure how to define this method. I simply want to check to see if one user is already a friend of another user
2006 Jan 04
2
Updating Attributes in a HABTM Join Table
Is there a way to update attributes in a HABTM join table? Right now I am deleting the join and then recreating it with new attributes. I have a table "categories" and another table "items". They are both HABTM with the join table "categories_items" between them. If an item is joined to a category once, no problem, we create the join. But if an item is
2001 Nov 14
1
unresolved symbols in loop
Hello, i have downloaded the kernel 2.4.14 and the correspondig ext3 patch ext3-2.4-0.9.15-2414.gz. After this i extract the archiv at /usr/src, renamed the dir linux to linux-2.4.14 and made a symlink linux-2.4. I changed to the directory linux-2.4 and add the patch as decsribed on the website gunzip < ~/ext3-2.4-0.9.15-2414.gz | patch -p1. There was no error and the patch was successful.
2004 Feb 16
1
RE: samba problem
Hi Alexander, The kind of firewall i have uses the basic iptables which came with the installation CDs of linux-SuSE. I installed SuSE 8.1 which has a firewall that has to be activated. But now, u know, i can't find the file containing the iptables so as to adjust the rules. When i try "iptables -L" in console mode i can see all the rules. I think i need to add some new rules
2002 Jun 11
1
NT user name doesn't match unix username when winbindd is runnin g
Samba team, I posted the following message on May 30 to comp.protocols.smb, but no one has responded to the posting as of yet, so I thought I'd try this email list. We are testing winbind and security=domain to authenticate NT users on our UNIX box in samba (v2.2.3a). Winbind is working correctly. Wbinfo shows users as domainname+username (we are using "+" as the