similar to: Selecting a subset of a table with DRY

Displaying 20 results from an estimated 1000 matches similar to: "Selecting a subset of a table with DRY"

2006 Jan 12
12
Ajax Button Back function?
Hi Folks! I''m new in the forum and i have a doubt. The button back function with the Ajax on Rails? tks. -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
7
Application Design Question
I am designing an application to run a fishing tournament I am hosting. Each fish entered will be given a point total based on the length of the fish and the species of fish. Each species has a point multiplier. For Example Trout have a multiplier of 10 so a 20 inch Trout would have a score of 200. My conundrum is in where and when do I calculate the points. The options I have come up
2006 Jan 12
7
user-defined columns
I am breaking ground on a new project and one of the issues I expect to encouter is the ability of users to define their own columns. For example, one of the features of this application will be the ability to store information about people''s skills and then search for and schedule them based on this information. Since every organization''s needs are different, it would be ideal
2006 Jan 11
3
Just update 1 field
Hi All, I wonder how I can get rails to update just one field when I do Myfile.save. Right now this happens when I do a Myfile.save: UPDATE myfiles SET `folder_id` = 0, `filesize` = 1, `data` = ''2f7573722f6c6f63616c2f6d ... f7061636b65743d33324d'', `user_id` = 0, `date_modified` = ''2006-01-11T23:33:57+0100'', `filename` = ''mysqlscripts.sql''
2006 Jan 09
5
mysql is not recognized as an internal or external command
Hi, An absolute newbie to RoR, I''m currently going through a few of the excellent tutorials that are available on the subject. One of these includes running a script for creating a mySQL table. In the command prompt (XP), I try mysql depot_development <db/create.sql but get the following error: ''mysql'' is not recognized as an internal or external command,
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if statement? I am using the same form for edit and new and I have a cancel button on the page. This cancel button is built with an if statement that looks right now to see if a parameter exists to define where to go back to if the user cancel. The problem occurs when the user submits the form and there are missing fields by
2005 Mar 06
4
has_many and order
Hi all, if I have a has_many and belongs_to relations like this category has many articles article belongs to category is there a way I can specify the order of articles when pulling them up with @some_category.articles ? Many thanks in advance! -- Nicky
2006 Dec 21
4
where is the source code of bca.ci?
i was searching for the source of bca.ci, a function of the package boot. I tried require(boot, keep.source=TRUE) but again the source was not viewable. How should i do? Best regards Meinhard Ploner ---------------- PS > version _ platform i386-apple-darwin8.8.1 arch i386 os darwin8.8.1 system i386, darwin8.8.1 status major 2
2006 May 08
2
Queries with has_and_belongs_to_many relationship
I was able to create a has_and_belongs_to_many relationship for my app, but now I''m not too sure how to write queries for it. Basically, I have a table ''courses'' that has_and_belongs_to_many ''categories'' and vice versa So I''m trying to figure out how I would find only the courses that belong to a category that I specify. Let''s
2006 Oct 05
3
google translate for missing language pages ?
Can we / should we think about using google translate for offering pages in languages where there is no local translation ? http://biohackers.net/wiki/GoogleTranslate.py { viewable in a normal browser } has a plugin for this! -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
2006 Jul 26
4
Dropdown with concatenated columns.
What is the best way to create a drop down where the viewable text in a concatenation of 2 or more columns? For instance, I hane a lookup table with these columns. Model FOO columns: id , name, phone In my drop select tag, I''d like the user to see: "name1 phone1" "name2 phone2" etc.. I know I can do this using find_by_sql . .. But, isn''t there a more
2009 Sep 06
2
OS X PDF bug (PR#13943)
par(mfrow=c(2,2)) y<-1:20 plot(y, pch="+") plot(y, pch="+") plot(y, pch="+") plot(y, pch="+") produces a pdf that is viewable in Preview (copied from the clipboard) but fails to print. pch default or ="." or =3 prints. Unfortunately pch=3 doesn't fix the mfrow=c(5,6) graph that I'm actually trying to print, so the bug lies
2015 Jun 13
4
C5 : Firefox 38 bug
On 06/12/2015 11:25 AM, m.roth at 5-cent.us wrote: > jd1008 wrote: >> On 06/12/2015 07:28 AM, g wrote: >>> On 06/10/2015 03:56 AM, Always Learning wrote: >>>> I displayed, as a web page, a list of search results created in PHP, >>>> from MySQL. >>> i am still using 24.8.0 and do not have to contend with all the >>> bugs introduced by moz
2005 Jul 06
4
Bug in shop demo
http://script.aculo.us/demos/shop if you drag an item from the product list straight to the droppable area to remove an item from the cart, it''ll still add it to the cart. -PJ
2008 Mar 26
3
Sympa vs Mailman/phpbb/mail2forum
Hi Paul, > From my notes, we decided the easiest, most straightforward way to solve it > was to use sympa. It's highly configurable, and has both a forum and a > mailing list interface, and sets forum replies up in a email-friendly > fashion, and neatly sidesteps the security problems that seem to plague many > of the php-based forum packages at the time. I set aside an
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I''m considering a menu sytem for a website that depends heavily on the users permissions to decide which menu options a user would need to see. I thought that components, since they have the logic in the controller and
2006 May 26
10
ROR website''s weblog not viewable on internet explorer
Does anyone know why the weblog at http://weblog.rubyonrails.org/ is often messed up, with the first or first and second topics left-shifted and melded with the Rails logo, the Live Search box and the page''s menu? This happens on all my boxes that run Internet Explorer 6 (IE6). I checked it on Firefox and the page appears correctly. While it''s easy to argue "just use
2011 Mar 27
1
Roaming Profiles Configuration
Hello all! I am new to the mailing lists, as well as Samba. I was looking for an Active Directory alternative for linux, and finally landed on Samba4. My installation is alpha12, installed via apt on Ubuntu 10.10. I am trying to create roaming profiles, however, if "path = /UserData" then the profiles are viewable from every user account by simple accessing "
2003 Mar 08
1
Advanced printers shares
Hi Here the problem. I am using samba 2.0.10 on sparc Solaris 8 platform in a Nis env. Currently we have about 100 or so printers listed in printers.conf nis map, these printers cover our 5 sites which all use the same nis env. Each site has one Domain master, and a local master on any separate subnets, as not all is in the same domain. When ours users log into a samba server they are
2007 May 07
7
Installing plugins without svn:// access
Hi, I''m trying to get up and running with rspec on a new project. I''d like to install the rspec and rspec_on_rails plugins (per http://rspec.rubyforge.org/documentation/rails/install.html), but my corporate firewall blocks port 3690 so I can''t access the repository via svn:// I searched the docs and the mailing-list archive to figure out how to install the plugins