Displaying 20 results from an estimated 10000 matches similar to: "form post not working"
2011 Mar 19
5
Routing issue
Hi!
I have two models, artists and songs.
I have this in my route file:
resources :artists, :path => "ackord" do
resources :songs
end
Which gives me urls like this (I''m using https://github.com/norman/friendly_id
to create and manage slugs):
example.com/ackord/artistname/songs/songname-id
Now I want to remove the /songs part to get a url like this:
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
2008 Nov 03
4
Really confusing issue involving ActiveRecord and a NoMethodError
Hey Everyone,
I have been working on a project where I process an XML file that
contains data about a music playlist, and I use 3 models: Playlist,
Artist, and Song. Each model is mapped to a table in my database, and
when my app processes the XML file, it will populate the database
accordingly.
The issue I have is that the Artist class and the Song class seem to
be undefined, even though they
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
2006 Jan 04
3
How Can I solve this?
this may be an easy question, but i am unable to solve it:
i want to take the selected choice and process it in the controller:
TEMPLATE:
<%=start_form_tag :action => ''get_article'' %>
<select name=pricelist>
<%= options_from_collection_for_select (@customers, "id", "name") %>
</select>
<%= submit_tag "Get" %>
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
2006 Oct 11
2
Help please with observe_form - not working
My observe_form is basically totally limp. I think it should update without
hitting submit button but even if I hit it , it doesn''t change (doesn''t seem
to post the data).
Can anyone please take a look and see if I"m doing something wrong. TIA
Form:
<% start_form_tag({:action => "livesearch"},
:id => "asearch") %>
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
2017 Mar 03
2
Icecast status-json.xsl improvements
While http://127.0.0.1:8000/status-json.xsl?mount=/live
is fine for info on the server itself and the current track played it's
missing a played history.
I'd like to suggest adding history to status-json.xsl or to reduce the
size of the json to the bare minimum that a Web base mediaplayer might need
Add a new one at http://127.0.0.1:8000/playing-json.xsl?mount=/live
Which will only
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
--~--~---------~--~----~------------~-------~--~----~
2006 Jan 03
1
options_from_collection_for_select - NIL Object
i am kind of desparated
i try with options_from_collection_for_select to get option values, but
it says
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.inject
but @customers is not empty ->
def get_customer
@customers=Customer.find_all
end
i have tested it and also the attributes "id"
2020 Mar 19
3
Icecast source client with web request/voting for next to play function
Hi all!
Thank you for having me. I'm a person who encourage a small local community
for musical involvement. It already kinda worked, we are doing plenty of
fantastic things together.
What I am now thinking of is 24/7 Internet radio based on Icecast that will
air all of their non-professional music I gathered. Functions I'm looking
for:
- frequent scanning of music directory to update
2012 Feb 29
2
Fetch Facebook fanpage in rails
Hi,
I am newbie to rails , I need access facebook page information like wall,
subscription,picture etc.
I have apps in rails 3, it has list of artist users he upload songs,
videos within my application, when the public (No Need to Login) can hear
the list of songs,videos. i decide to fetch the facebook/twitter basic
fanpage information and shown to the public in the popups.
i
2006 Jun 14
2
tags, having some problems....
Have a problem with flac tags,...
need to clean up 100's of .flac tags....
example:
(1)_Buff & the Skylights - Wishing You.flac
07 have a great day.flac
^^Love for ever - Muffin Men.flac
(spaces)
As you can see, there are allot of problems,
and I don't have the time to hand tag each .flac file.
----
is there ANY thing for Linux, that can ( RE-tag )
.flac files, ie: do a lookup
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
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def
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 Jan 07
2
How to split an Ogg Vorbis stream?
I looked through the archives and I didn't really seem to find the answer
to what my question.
I used wget to get an audio stream from a site and now I would like to be
able to split up the stream into the individual songs. The site is nice
enough to encode the artist and track name in each new song. This info is
displayed in Winamp when the song plays. Doing an xxd dump of the file I
can
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
2006 Feb 13
4
DRM and Ogg Vorbis ??
Dear all,
I would like to know whether it is possible to use any DRM scheme
with Ogg-Vorbis ?
My idea would be to distribute music commercially and be able
guarantee to artists that they won't be copied freely.
Thanks for your advice.
Regards,
Ulrich
ulrich@bbtest.roxr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: