Displaying 20 results from an estimated 550 matches for "genr".
Did you mean:
gen
2006 Mar 04
3
select helper method
Hey
I''m having problems understanding the select helper. Here is my code:
_____________________
DB table: genres
id
name
descripition
___________________
In the controller:
def index()
@genres = Genre.find_all.map {|u|[u.name, u.id]}
@id = params[''genre'']
end
____________________
In the view:
<%
@genre = Genre.new
@genre.id = @id
%>
<%= start_form_tag :a...
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", "game_genres", and "game_elements"
(the last two being join tables, obviously). The models look like
class Game < ActiveRecord::Base...
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 =>...
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 but..
class Artist < ActiveRecord::Base
has_many :albums
has_many :videos
has_many :cds
has_many :collections
has_and_belongs_to_many :genres
end
when I put it at the end of the list, th...
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_...
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...
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 HT...
2013 Sep 18
4
Opus now supported at Magnatune
...etadata implementation. It's very cleanly done, and the multiple artwork idea is fantastic. One suggestion: I couldn't find an example in the man pages or online of including album art in an .opus file, which would have been helpful.
2) on the metadata topic, it'd be great if multiple Genre commands were allowed. No other format has enabled this, but much music spans multiple genres, ether with a main-genre/subgenre split, or literally across two genres. Ie: "Latin Music/Tango" or "Classical/Baroque"
3) audio quality is spectacular, and I assume that opus is do...
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 have_content("Caddyshack")
end
So far everything''s working, but the have_content("1 movie") doesn''t,
although I...
2018 Mar 07
1
Show all audiance in Icecast directory... cluster ?
...d> but no success.
<mount type="normal">
<mount-name>/stream1</mount-name>
<stream-name>My stream</stream-name>
<stream-description>Description</stream-description>
<stream-url>http://domain.com</stream-url>
<genre>Hits</genre>
<bitrate>192</bitrate>
<type>application/mp3</type>
<subtype>mp3</subtype>
<public>0</public>
<hidden>1</hidden>
<burst-size>384000</burst-size>
<queue-size>192000</qu...
2010 Sep 29
0
Transforming/appending data (words in IMDB)
Hi everyone,
I am doing an analysis of reviews in IMDB and am running into trouble getting my data into the right shape for analysis.
Key question: I want to know for each word in the IMDB, whether it is over- or under-represented in a particular category (Rating x Genre). I was figuring on estimating this with a g-test, fwiw. But the basic question I'm asking here is about data transformation/appending. To go from these columns:
Film | Genre1 | Genre2 | Genre3 | Reviewer | Rating | Word | Word_ct
to these:
Word | Genre | Rating | Word_ct | Word_ct_i...
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...
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 => '...
2005 Apr 16
1
Accessor not set
Hello!
I have a list of bands, and each band belongs to one genre:
class Band < ActiveRecord::Base
belongs_to :genre
end
class Genre < ActiveRecord::Base
has_many :bands
end
In the list.rhtml, when I do:
<% for band in @bands %>
<td><%=h band.genre.name%></td>
</tr>
<% end %>
it gives me: _undefined method...
2000 Jun 22
0
Standard genres for the "Genre" Field?
It might be a good idea to have a list of standard genres that are
suggested for use in the Genre field, just so that (polished) encoders
can give the user a list to pick from when encoding a song, instead of
making the user come up with one their own. This might seem like an
encoder issue at first, but if two different encoders use two different
n...
2006 Oct 02
3
How do I list in YP? icecast2 ices0
ices.conf:
<Public>1</Public>
<!-- The name of you stream, not the name of the song! -->
<Name>Poohba's Urban Sounds</Name>
<!-- Genre of your stream, be it rock or pop or whatever -->
<Genre>RnB</Genre>
icecast.xml
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>...
2004 Sep 10
2
PATCH: XMMS year bug
...Fri Jul 16 18:28:35 2004
--- /usr/portage/distfiles/flac-1.1.0/src/plugin_xmms/wrap_id3.c
Thu Jan 2 02:18:57 2003
***************
*** 105,107 ****
input->track_number = local__getnum(tag.track_number);
! input->year = local__getnum(tag.year_recorded);
input->genre = local__getstr(tag.genre);
--- 105,107 ----
input->track_number = local__getnum(tag.track_number);
! input->year = local__getnum(tag.year_performed);
input->genre = local__getstr(tag.genre);
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...
2000 Oct 15
2
using vorbiscomment
...9;help!','V!','ogg-version!','t:s','title:s',
'v:s','version:s','l:s','album:s','a:s','artist:s',
'o:s','organization:s','D:s','description:s','g:s','genre:s',
'd:s','date:s','p:s','location:s','c:s','copyright:s')
or usage();
usage() if $opt{h} || $opt{help};
version() if $opt{V} || $opt{'ogg-version'};
# Translate short options
$opt{title} = $opt{t} if exists $opt{t};
$opt{ver...
2013 Jan 05
1
[Bug 805] New: osf iptables[-save] errors
...ion: All
Status: NEW
Severity: normal
Priority: P5
Component: iptables
AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: blackhole at airpost.net
Estimated Hours: 0.0
Hello NF Team,
#1:
# $IPTABLES -A FOO -p tcp -m osf --genre Windows --ttl 1 --log 1
# $IPTABLES -S FOO
-N FOO
-A FOO -p tcp -m tcp -m osf --genre Windows
tested with:
kernel: 3.2.35 & 3.7.1
iptables: 1.4.16.3
iptables -[L|S] and iptables-save seem to miss the --ttl and --log options.
Therefore on restore, those settings get omitted.
--------------...