search for: album_nam

Displaying 8 results from an estimated 8 matches for "album_nam".

Did you mean: album_name
2009 Apr 11
6
Inserting data from 1 table to another by using find_by_sql
Hi All, I am inserting data from one table to another by using following method @data=RoyaltyReportFiles.find_by_sql("insert into royalty_reports (artist_name, album_name) select artist_name, album_name from temp_royalty_reports where id=328417") it saves the data into royalty_reports table but it gives following error and application crashes. i am using rails 1.2.5 You have a nil object when you didn''t expect it! The error occurred while evaluatin...
2007 May 09
1
form.select wrong number of arguments (0 for 1)
...o this install. Here is the error: ArgumentError in Admin#index Showing app/views/admin/index.rhtml where line #3 raised: wrong number of arguments (0 for 1) Extracted source (around line #3): 1: <form method="POST"> 2: <%= @album_list = Album.find(:all, :order => "album_name") 3: form.select(:album_name, @album_list) 4: %> 5: </form> Any help would be greatly appreciated -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby o...
2006 Dec 07
2
need to transfer data from old php like db to rails style db
hey all, I have two tables like that from an old php project: artists(id,name) albums(id,artist_id,album_name) and I need to transfer the data of this database to three tables that look like this: artists(id,name) albums(id,name) artists_albums(album_id,artist_id) any idea what''s the fastest query to do this? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You re...
2006 Jan 10
1
[AJAX] related drop-down list question
...quot;]) @html = "<select id=''album_id'' name=''album_id''>" @html += "<option value=''''>No Album</option>" @albums.each do |@album| @html += "<option value=''#{@album.id}''>#{@album.album_name}</option>" end @html += "</select>" I would think this is considered ''bad practice'', because this is the job of the view. How could one rewrite this and get a cleaner controller code? Regards, Harm de Laat -------------- next part -------------- An...
2009 Jul 15
2
Fixing ogg vorbis corruption caused by bad metadata
Adam Rosi-Kessel wrote: > Yes, it was Mediamonkey. They claim that it was due to a bug in vorbis > libraries. All software has bugs, but this explanation doesn't really add up. libvorbis is the codec. If they had blamed libogg, which does the container, then yes, that would have been a believable explanation :-). Erik --
2006 Apr 25
6
Searching over multiple MySQL tables
I am racking my brain over this, probably because I only know very simple mysql functions. Basically I''ve got a few tables, ex: Albums (id,name,band_id); Bands (id,name,label_id), and Label (id,name) I want to search through both album.name, band.name, and label.name throwing all results into a variable, with no redundant info. I think what I need to be doing is setting up some
2004 Sep 10
2
getting framesize in client
...002-11-07 18:40:44.000000000 +0100 +++ src/plugin_xmms/wrap_id3.c 2002-11-09 11:41:23.000000000 +0100 @@ -98,6 +98,8 @@ XMMS_NEW_TITLEINPUT(input); input->performer = local__getstr(tag.performer); + if (!input->performer) + input->performer = local__getstr(tag.composer); input->album_name = local__getstr(tag.album); input->track_name = local__getstr(tag.title); input->track_number = local__getnum(tag.track_number); -------------- next part -------------- Index: configure.in =================================================================== RCS file: /cvsroot/flac/flac/co...
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote: > --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > > I have few notes: > > > > It seems there is changed API in CVS again. So, what about adding > > function like > > unsigned FLAC__format_frame_size(const FLAC__Frame *frame) > > which returns size of the frame in bytes. This