similar to: Routing issue

Displaying 20 results from an estimated 1000 matches similar to: "Routing issue"

2006 May 04
4
form post not working
Hi there, I have this form code in a view: <%= start_form_tag :action => "listByArtist", :id => artist.id %> <p><b>List by Artist:</b> <select id="artist_id" name="artists[id]"> <%= options_from_collection_for_select(@artists, "id", "name") %> </select> <%= submit_tag "List"
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 --~--~---------~--~----~------------~-------~--~----~
2010 Aug 19
4
Subclassing a model
Is it possible to define a subclass for a model, that defines additional data columns, which are stored in a separate table? Is there any description, how to do this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Oct 11
12
Need advice on controller / view
Need some advice. I''ve got two modules: artists and paintings. In my home page, I''ve got a 2nd page that says "Browse paintings", which displays ALL paintings of ALL artists. This is being rendered by paintings#index. In another page, I should show all paintings of a specific artist ONLY. Meaning, paintings from ONE artist. I cant use paintings#index for this anymore
2009 Mar 11
1
NoMethodError for select_tag
Hello there. I am following a tutorial with rails 2.1 and I have come across a problem where <%= f.label :artist_id %><br /> <%= f.select_tag(:artist_id, options_for_select([[''choose one'', '''']] + @artists.collect {|art| [art.name, art.id]}, @album.artist_id)) %> (Old artist info:<%= @album.artist_old%>) gives undefined method
2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv" success = Paperclip.run(''ffmpeg'', cmd) Console is reporting: ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream, 16824,1.mpeg -f flv -s 320x240
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi, I''m currently running an apache/jboss cocoon/flow/hibernate/ajax paypal (directpayment) project and am looking into the possibility of porting it across to ruby/rails. For that reason I would like to know the following: 1. Can I call my java classes or would I be looking at a complete rewrite in ruby? 2. How effective is ruby in terms of seperation of concerns regarding design from
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all, I followed the example on: http://www.roryhansen.ca/?p=9 for creating related drop-down lists. However, this code actually creates HTML in the controller component: @albums = Album.find_all_by_artist_id(@params["artist_id"]) @html = "<select id=''album_id'' name=''album_id''>" @html += "<option
2010 Aug 08
5
Ruby 1.8.7 and openssl failed compile
I got this error: ossl_ssl.c: In function ?ossl_sslctx_get_ciphers?: ossl_ssl.c:626:19: error: ?STACK? undeclared (first use in this function) ossl_ssl.c:626:19: note: each undeclared identifier is reported only once for each function it appears in ossl_ssl.c:626:25: error: expected expression before ?)? token ossl_ssl.c:629:47: error: expected expression before ?)? token
2007 Aug 02
2
STI functionality, but then with multiple tables
Hello, I''m creating my own Tumblr [tumblr.com] like rails app. It''s like a blog, but in this case a blog post could be of a certain type, i.e. a regular post, a video, a link, a photo, a song(info). Well now, it''s clear that they share a lot of similar functionality: title, created_at/updated_at, commentable, probably has an author_id, etc.. But besides that they are
2004 Aug 06
3
legalities of streaming
Oh, I almost forgot... If you're going under compulsory licensing: 1) Listener requests cannot be honored, otherwise you will end up labeled an "interactive service" along with Audiogalaxy Rhapsody & the like. Which means more & more expensive royalties. 2) You cannot play more than 3 songs of the same album in any 3 hour period (no more than 2 in a row). Nor can you
2005 Dec 10
0
Paginate - Count(*) Broken or Am I Cheating?
I have the following paginator setup: @merch_pages, @merch = paginate :merch_item, :per_page => 15, :select => ''DISTINCT mi.id, mi.merch_image, mi.created_at, mi.artist_id, mi.item_description, art.sort_name'', :join => ''as mi JOIN merch_formats mf ON mi.id = mf.merch_item_id JOIN artists art ON mi.artist_id = art.id'', :order =>
2003 Jun 05
2
Buying Vorbis Music
('binary' encoding is not supported, stored as-is) Hello, I don't know if you knew that there's a russian site where you can buy your music in Ogg Vorbis. There are many albums where you can decide what Codec (MP3, AAC, WMA, Vorbis, MP+) and Bitrate (or quality for Ogg) should be used to encode and download the files encoded specifically for you. The prices are somewhat low.
2006 Oct 21
0
find_or_initialize_by and Nested Resources
Hey guys, Lets say I have the following nested resources: map.resource artists do |artists| map.resource songs end To create a new song, the url would be: /artists/:artist_id/songs/:song_id However, lets say that an artist doesn''t exist yet. I only want to create an artist if a new song by the artist is successfully saved. I am retrieving the artist using something like: @artist
2004 Aug 06
2
Dynamic playlist support
Asymmetric wrote: [SNIP] > > I don't know (don't use ices) but I thought I should inform you.. taking > user requests may cause you to violate the RIAA rules regarding that > topic, depending on how you handle it. Be careful. ;) > It's for my office... I'd love to play my CDs on my radio, but it would disturb those that don't like my music. Some do, so
2005 Dec 05
0
bug in bubbleshare's Active Record extensions?
I''m using add_foreign_key_constraint and remove_foreign_key_constraint from Bubbleshare''s Active Records Extension plugin now to manage the foreign key relationships I describe in my other recent posting. The constraints get added within migrations, but I''m running into two problems (Rails 0.14.3, PostgreSQL db): 1. Dumping the schema doesn''t dump the
2001 Aug 21
2
Title formatting for players/plugins
Hi, Peter Pawlowski's new (1.15beta) winamp decoder plugin seems quite nice, in my opinion.. The "title formatting logic" is what I've been dreaming of for ages.. Right now I've chosen "%artist / [[%[abbr20]album][-%[num2]tracknumber] / ]%title[ - %version]" I get titles such as "Artist / Title"or "Artist / Album / Title" or "Artist /
2004 Aug 06
2
Ices2; Metadata and special chars
Hi there! I am currently developing a broadcast solution with ices2 (feeded over pipe, stdin). I use a metadata-file and signals to update the streams metadata. The problem is, names of songs and artists are cut off at special chars like & or at a german umlaut. For example: artist=Test title=foo & bar is sent to the clients as "Test - foo ". Do i have to use some kind of
2004 Aug 06
2
legalities of streaming
Ditto Scott - you nailed it !! But the DMCA actually sets rules on requests and processing them without being considered "interactive" - for instance the time frame allowed from when requests are made and then processed and actually air (minimum 60 minutes), to displaying your playlist - (can not be displayed public in the order of actual performance) basically as long as you never
2005 May 03
7
Digium MOH
I called Digium today and hear some neat nifty music on hold that isn't included with Asterisk.. anyone have any idea what it is.. and where I can get it (if it's in the public domain)?