similar to: select helper method

Displaying 20 results from an estimated 6000 matches similar to: "select helper method"

2007 Sep 23
3
Connecting a row of an unknown table to another row of an unknown table
Hello all, I''m currently designing a web app in Rails that lets me keep a directory of free/opensource computer games. Each game has attributes like name, website, review, etc., but each game can also be associated with a set of genres and gameplay elements. The main three tables I''m working with are "games", "genres", "elements",
2005 Dec 15
2
HABTM being tricky
I''ve just been bodyslammed by a problem with has_and_belongs_to_many - as far as I can tell, if it doesn''t appear at the top of other relationship definitions it doesn''t seem to work right. For example: class Artist < ActiveRecord::Base has_and_belongs_to_many :genres has_many :albums has_many :videos has_many :cds has_many :collections end ..works fine
2006 Jun 25
2
how to write the codes in view?(newbie question)
Hi. I have two tables and want to join them. <genres> id genre_name genre_order <links> id genre_id name symbol url order display etc The code of links_Controller is like below. def list @links = Genre.find(:all,:include => :link) end Below is the mysql log. SELECT genres.`id` AS t0_r0, genres.`genre_n ame` AS t0_r1, genres.`genre_order` AS t0_r2, links.`id` AS t1_r0,
2013 Sep 18
4
Opus now supported at Magnatune
This seemed to be the best place to let you guys know.... Magnatune.com's entire catalog is now downloadable in Opus format, with full metadata (small and large cover art) at 128k stereo. A few comments: 1) I'm really impressed by your metadata implementation. It's very cleanly done, and the multiple artwork idea is fantastic. One suggestion: I couldn't find an example in the
2013 Sep 20
5
Opus now supported at Magnatune
> If you pass --genre multiple times, it will actually encode multiple GENRE tags in the file. Not sure how many players will properly handle such a thing, though (my prediction: not many, though I think VLC will concatenate them into a comma-separated list). My mistake, I didn't read the man page carefully enough, which does state this: > Set the genre comment field to genre. This
2004 Aug 06
2
Directory listing disappeared
On 22 Mar 2003, Karl Heyes wrote: > ethereal is a good tool for that, start a capture (maybe with a capture > filter of "port <port>" or "host <ip>" to limit it if the box has plenty > of traffic), connect the source, wait a second then stop the capture. > Pick one of the packets that relates to the source stream and do > tools->follow tcp stream.
2012 Jul 10
3
yp.xml - Size and Contents
Hi all, 1. I recently noticed that yp.xml is still limited to 1,000 entries only while the web directory says there are over 21K streams. I remember some discussions regarding the bandwidth required to serve this file, so is it possible to get it in compressed format? Here are some figures: - the yp.xml as served now (1K entries) is 343 KB. This means 21K entries will be around 7 MB. -
2009 Aug 09
2
floating point
On Aug 7, 2009, at 21:48, Didier Dambrin wrote: > FLAC doesn't preserve every chunk? I thought it did. I only gave a > quick try > but it seemed to have preserved even the most obscure chunks. > Let me check: it even seems to preserve "MIDI note associated to > marker", > which is a very unknown metadata used by SoundForge (& even defined > in a >
2004 Sep 23
2
random playing order and forum location question
1. where can I find the web-based forum? I'd like to search the solution, because I was able to setup Shoutcast2 for streaming only one mp3 file, but nothing else at all. (I did read the faq, the help 2 times, the logs, I even checked the Tcp/ip traffic of the port of 8000... not found the solution). I haven't downloaded the source code, because I was too sleepy. (and angry :-( ) 2.
2012 Sep 08
3
Polymorphic has_and_belongs_to_many association
Hi, I''m currently having the situation where I have to implement a polymorphic has_and_belongs_to_many by introducing an in between model that handles all the "has_many :as" and "belongs_to :polymorphic" association implementations... and is not doing anything else. Thing I don''t like it here is, I am unnecessarily loading AR instances only to execute SQL
2008 Jul 30
4
AssociationTypeMismatch: Genre expected, got String
Hi all I have the following 2 models: class CompactDisc < ActiveRecord::Base belongs_to :genre end class Genre < ActiveRecord::Base has_many :compact_discs end I have created a select box for my form so I can choose a genre for every compact disc: <p> <b>Genre</b><br /> <%= f.select :genre, Genre.find(:all).collect{|p| [p.name, p.id]}, :selected =>
2008 Jan 02
1
extracting pvalue from ANOVA with repeated measures
I made an ANOVA with repeated mesures (aov(Mesure~Distance*Genre*Correct+Error(Sujet/(Distance*Genre*Correct)), data)) and I would like to extract the pvalues. The output is: ----------------------------------------------------------- Error: Sujet Df Sum Sq Mean Sq F value Pr(>F) Residuals 21 97.082 4.623 Error: Sujet:Distance Df Sum Sq Mean Sq F value Pr(>F) Distance
2006 Apr 23
1
checkboxes for filtered search
I have a page that renders a series of about 20 checkboxes on the left hand side with content on the right. These checkboxes are created from a DB and that part is all working well. What I want to do is have a user click on a checkbox [genres] and have the content on the right be filtered based on the checkbox ticked. If a user clicks on more than one checkbox than only those stories
2001 Jul 06
0
Comment Editing (Was Nullsoft Vorbis Decoder v.1.11a Bug Report)
Hi, there. --- mike dillon <mdillon@standmed.com> wrote: > good luck getting a list of genres that will satisfy everyone. Simply, it is impossible. I just put the list completely the same context with the MP3 tag editor with Winamp. ...Some people seem to mix ID3 tag of MP3 with comment of Ogg Vorbis. As long as it is category-information string, you can add any thing you like to Ogg
2006 Apr 22
9
one to many question
1. A category has parent categories. 2. A product is in many categories and a category has many products. 3. Products and category both have images in the same image table. ie. a product and / or category could have multiple images.<=== my question is related to this So among other things I presume I have to do the following: class Category < ActiveRecord:Base #...
2020 Oct 24
0
Multiple genres listed on YP?
I've seen that several stations have multiple genres listed on YP. How is that possible` I tried with: <genre>Kids</genre> <genre>Rock</genre> <genre>Pop</genre> ..but only the last genre (Pop) is shown Regards... Daniel -- *Bananradion* - svängig musik non-stop -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody I have worked quite to near the end of The RSpec Book, but now I''m having some troubles. I''m trying to get the last few Cucumber steps to work, which are: Then /^Caddyshack should be in the Comedy genre$/ do visit genres_path click_link "Comedy" save_and_open_page response.should have_content("1 movie") response.should
2018 Mar 07
1
Show all audiance in Icecast directory... cluster ?
Hello, I installed Icecast 2.4.3 by downloading http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz CentOS 7 Then ./configure make make install Its working. My only issue : I have 3 streams, I see the name of my station 3 times in Icecast directory. I tryed to hide 2 streams by using the hidden and public tags and force showing the total of audiance in the one public stream. i
2004 Sep 10
2
xmms plugin, fileinfo
Here is preliminary patch for fileinfo for xmms plugin. Saving and removing of the tag isn't working. When saving, how handle id3v1, v2? Display and edit more fields (e.g. performer)? How handle genres? Combo with predefined values? -- Miroslav Lichvar -------------- next part -------------- Index: src/plugin_xmms/Makefile.am
2013 Sep 19
0
Opus now supported at Magnatune
John Buckman wrote: > Magnatune.com <http://Magnatune.com>'s entire catalog is now > downloadable in Opus format, with full metadata (small and large cover > art) at 128k stereo. As a long-time fan of Magnatune and what you're trying to do, this is pretty awesome. > 1) I'm really impressed by your metadata implementation. It's very > cleanly done, and the