similar to: Rails Newb: Foreign Key Views?

Displaying 20 results from an estimated 2000 matches similar to: "Rails Newb: Foreign Key Views?"

2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb def album_list(genre) albums = genre.albums.sort list = albums.collect { |album| link = link_to album.title, :controller => ''albums'', :action => ''show'',
2006 Feb 11
1
Naming confusion
Hi, I have a database setup with 2 tables and a simple one-to-many relationship where article_categories have many articles. In the models ruby has created for me, I''ve added "belongs_to :article_category" to the Article class and "has_many :articles" to the ArticleCategory class. Everything seems fine until I try to reference the category from the article. In my
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
Hi, Here''s my problem. I tried to google it, read the release-docs and haven''t found anything similar. My application uses folders to store controllers, as described in the Rails book. I need to have same-named controllers for admin and for users, so it looks like this: /app/controllers/admin/project_controller.rb /app/controllers/admin/...
2008 Oct 08
2
Creating a matrix
Good evening. I have this following table and I would like to turn it into a matrix in which my rows would be filled with de "Sellers", my columns with my "Articles" and my data would be the mean unitary price used by each seller in each produt. Seller Art. Unit Price 1 v1 p1 9.148352 2 v2 p1 2.858073 3 v3 p1 3.775315 4 v4
2007 Mar 08
4
Asterisk distributed deployment
Hello all, I post this issue thinking too that could help other people on an asterisk deployment over distributed offices considering both quality, prices, devices and so. Well, i am working on a deployment of a telephony system based in asterisk. My company have a central office with seven remote offices connected all through a VPN. To reduce and evaluate costs i consider solutions like:
2011 Dec 13
2
Generating input population for microsimulation
Hi all, I've been struggling with some code and was wondering if you all could help. I am trying to generate a theoretical population of P people who are housed within X different units. Each unit follows the same structure- 10 people per unit, 8 of whom are junior and two of whom are senior. I'd like to create a unit ID and a unique identifier for each person (person ID, PID) in the
2006 Mar 02
6
Newb question about facade columns
Hello, I am trying to deal with a database table that contains a date in the form of the number of seconds since epoch. Data is inserted in this format by an existing script that I can''t change, so a schema change isn''t realistic. I would like to allow humans to view and edit this data in the form of an actual human-readable date. I figured a facade column would be the
2011 Jan 10
5
FLAC is dead?
>> Oh I don't doubt the basics, red book is red book and bits are >> identically replicable and re rippable bits. > > I don't see any problem with taking innovation as far as is practical > and saying "it's finished, no more updates". Sure, basics :) Again, I'm meaning in regard to about bugs, docs, porting and nits. > If I want to do freedb
2013 Jun 10
1
Where Query in SQL
Hey all I am trying to use where in clause in sql query in R here is my code: sql.select<-paste("select PERSON_NAME from UNITS where UNIT_ID in ('",cathree,"')",sep="") where cathree is 1 variable with 16 observations as follows UNIT_ID 1 205 2 209 3 213 4 217 5 228 6 232 7 236 8 240 9 245 10 249 11 253 12 257 13 268 14 272 15 276 16 280 but when i run
2006 Nov 15
7
Do Not Call List
The US has a Do Not Call list to which people can subscribe to prevent being called by advertisers. Federal laws (strengthened by some state and more local laws) assign penalties for calling people/phones on the DNCL. Is there a query gateway that Asterisk (or an app using Asterisk) can filter through to ensure a number is OK to call (not on the list) before calling it? -- (C) Matthew Rubenstein
2004 Jan 21
11
Digium X100P for $43
Digium X100P / new cards are is available on ebay for $43. http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=3073050567&category=3309 <http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=3073050567&category=3309 > Hope this helps to who want to play with X100P! Are these being sold by Digium ? I don't know ?? - SamW -------------- next part -------------- An HTML
2007 May 22
3
can I use acts_as_list with a has_many :through association
I''d like to be able to use a has_many :through association and treat the associations as a list but I''m getting this error when I try an use an acts_as_list method: NoMethodError: undefined method `move_to_bottom'' I''m using edge rails r6786. Here are my domain rules: Activities are things students can do. Units consists of a sequenced list of
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list, I have an app that has a very simple authorization scheme. A person can have many roles and roles can have many people. In my app, I''d like to do before_filter :login_required (since no role name is provided, it accepts any users with credentials) before_filter :login_required ("administrator") (only accepts those with role administrator) before_filter
2006 May 09
3
SerNet.de Release and krb problems
Hello All, Im using a fresh install of CentOS 4.3 fully updated with the latest Samba packages from SerNet.de http://enterprisesamba.org/index.php?id=64 While I have used Samba/Winbind for quite some time, Im have a peculiar problem with these RPM's. When I try to "net ads join -U
2009 Jul 01
1
Newb question - CHM files - Best method to view
Please excuse my first couple of probably quite a few newb questions. Are there still probs with viewing chm files? If I browse to the chm file and just launch it seems fine until I try search for a subject. I search, find what I'm looking for, click it and the help file closes. If I use wine hh / winepath windows path it launches but if I click search I can't try the search, it's
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error... app/controllers/info_controller.rb:9: syntax error this is what is inside of info_controller, class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |accepts| accepts.html accepts.xml end end if someone could please help me... -/ James --
2010 Jan 26
0
newb question: chron and hist()
Hi all, I'm just getting started in R so bear with my newbness. I am trying to create a very simple histogram of logins by time, with data coming in from a MYSQL query. the raw data looks like this: "id" "user_id" "experience_given" "created_at" "ip_aton" "1" XXXXXXX 2445626 0 "2010-01-21 00:00:01" 1123632036 "2"
2005 May 18
0
Integrating Asterisk into our Legacy PBX <-- Newb (correction)
Correction: The hardware is a Wildcard T100P (not a TE110P) Thanks! > -----Original Message----- > From: Geoff Manning [mailto:gmanning@zoom.com] > Sent: Wednesday, May 18, 2005 9:07 AM > To: Asterisk Users (E-mail) > Subject: [Asterisk-Users] Integrating Asterisk into our Legacy PBX > <--Newb > > > I have been successful in setting up asterisk and making >
2007 Dec 03
1
Subject: Newb Question
Hi, Use orecx, voip call recording and monitoring. www.orecx.com Thanks & Regards, Vidura Senadeera, Sri Lanka. Tel - +94114520001 Mobile - +94777766596 yahoo/skype Ids - vidurased > ------------------------------ > > Message: 17 > Date: Fri, 30 Nov 2007 08:58:41 +0530 > From: ram <talk2ram at gmail.com> > Subject: Re: [asterisk-users] Newb Question > To:
2009 Jun 17
0
newb question installing rsync on old solaris
hi all i installed a new version of rsync on an old solaris machine we have around. an old rsync was running before, but now neither is running, both complaining about dependencies, even though the compiling & install went fine, you can see the error i get below when i try to run it. la3000# rsync ld.so.1: rsync: fatal: libpopt.so.0: open failed: No such file or directory Killed so i