search for: artist's

Displaying 20 results from an estimated 1059 matches for "artist's".

Did you mean: artist
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"...
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....
2006 Mar 19
2
Unit test confusion
Hey all, I''m following along with AWDWR, specifically the unit testing. On page 148, it shows you how Test::Unit::TestCase will automatically define instance variables based on your fixtures. It doesn''t seem to actually work, though. It seems that both @artists ["beatles"]["name"] and @beatles.name are nil objects in my test, where as artists(:beatles).name works ok. What is the right way of doing it? I''d guess the one that actually works is right, but there''s a lot of stuff on google about the other ways tha...
2007 Aug 08
25
Problems with RESTfully generated helpers
I am using helper the RESTfully generated helper methods in my views. My routes are nested so the helpers appear to need arguments passed to them, but it works without arguments. Say for example I have pages and comments. If I do page_comments_path without parameters, it works. However, when I run the rspec test, it fails and tells me i''m missing parameters. I tried to pass
2013 Jan 25
2
If cycle takes to much time...
dear all, thank you for reading. I have a dataset of artists and where and when they had an exhibition. I'd like to create an affiliation network in the form of matrix, telling me which aritist have been in the same at the same time. I manage to do it, but given that I have 96000 observation the program takes 30 months to complete. her what i have don...
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...
2013 Jun 09
2
Minitest mock or stub methods
Hi I''m building a small library to use in my Rails app which interacts with a 3rd party API. It fetches artists and tracks. So I have: lib/my_lib.rb lib/my_lib/artist.rb lib/my_lib/track.rb To get an artist I do artist = MyLib::Artist.find("Oasis") Which returns an instance of Artist if it finds (via 3rd party API) it or nil otherwise. Then I can call artist.tracks which fetches all available...
2017 Mar 03
2
Icecast status-json.xsl improvements
....xsl?mount=/live Which will only hold the current info: { "date":"2017-03-03T10:57:20Z", "server_name":"Testing Stuff", "server_description":"Blah blah blah", "history": [ {"date":"2017-03-03T10:52:10Z","artist":"Some artist","title":"Some song (this is the current one)"}, {"date":"2017-03-03T10:48:10Z","artist":"Some other artist 2","title":"Some Song 2"}, {"date":"2017-03-03T10:44:10Z",&quo...
2001 Dec 07
5
PROPOSAL: Sub-Tagging
I mentioned sub-tagging in an earlier post. Here's a more in-depth mail on what i thought of. One of the debates going on here are whether ARTIST is worthy of life. Another is whether the average user will bother filling in the detailed info Jonathan wants. Of course, all tags are optional, but nevertheless we should have a tagging-system that pleases _the_users_, that is, everybody: 1. Make it simple. 2. Make it (optionally!) detailed....
2010 Oct 12
2
STI and :through, not working?
Artist.first.medias returns all medias. Media is an STI. Media can be video or painting. How do I return all paintings of an artist? Only paintings, not videos? In my Artist model, I tried putting: has_many :paintings, :through => :medias In console, I do: Artist.first.paintings.all And I get...
2017 Mar 03
0
Icecast status-json.xsl improvements
...d be preferred. > > { > "date":"2017-03-03T10:57:20Z", > "server_name":"Testing Stuff", > "server_description":"Blah blah blah", > "history": > [ > {"date":"2017-03-03T10:52:10Z","artist":"Some artist","title":"Some > song (this is the current one)"}, > {"date":"2017-03-03T10:48:10Z","artist":"Some other artist > 2","title":"Some Song 2"}, > {"date":"2017-03-0...
2010 Oct 08
1
How to access virtual attributes in the model
I''ve got an artist form. In this form I''ve got attributes that do not exist in the model that the form belongs to. However, I would like to submit these values for later processing. My virtual attributes in the form are: <%= f.label :foobar %> <%= f.text_field :foobar %> In the art...
2006 Aug 07
2
Dynamically created queries
...I''ve mangle rails as I would have done it in PHP event = Event.new(params[:event]) strQuery = "" unless event.event_name.blank strQuery = "UPPER(event_name) LIKE UPPER(" + event.event_name.to_s + ") " end unless event.artist.blank strQuery += sql_and(strQuery) strQuery += "UPPER(artist) LIKE UPPER(" + event.artist.to_s + ") " end unless event.city.blank strQuery += sql_and(strQuery) strQuery += "UPPER(city) LIKE UPPER(" + event.city.to_s + &quo...
2017 Jun 07
0
Sending artist - title - album metadata
Another correspondent here has pointed out that: > Recently Stream Licensing LLC has changed their requirements so that > streaming internet stations in the US must stream the album [name] > along with the song title and artist. We are also in this particular boat. We are using Centova Cast which uses Liquidsoap as its AutoDJ and Centova say that if the album tag is stored in the file then it will be sent. We know it's there because it is displayed by Centova's widgets. However it doesn't seem to be sent with...
2016 Feb 26
2
Metadata in xsl files
I have been trying to access the "artist" and "title" metadata in the xml files as separate entities, But have found thar artist is missing, and title contains a combined form. My source is a modified version of ices-0.4 sending mp3 streams. The modification is to attach artist and title metadata instead of song, which seem...
2010 Oct 15
1
Help with nested form: User and Artist
Artist is 1:1 with User. User has_one :artist In my artist model, I have: belongs_to :user accepts_nested_attributes_for :user However, in my artist _form, the name column from the user model does not display. I am doing: <% f.fields_for :user do |builder| %> <p class="fields...
2006 Jun 21
1
Migration with foreign key won''t work
Hi all I use the plugin which supports foreign keys with migrations: http://wiki.rubyonrails.org/rails/pages/Foreign+Key+Schema+Dumper+Plugin/versions/12 I have created the following migration file: class AddArtistsTable < ActiveRecord::Migration def self.up create_table :artists, :force => true do |t| t.column :name, :string, :limit => 100 t.column :artist_type_id, :integer t.column :about, :text end create_table :artist_types, :force => true do |t| t.column...
2006 Dec 26
0
alias_method_chain vs. redefined method with super
...method_chain to refine method behavior versus redefining a method and calling super. I have a simple data model (a music collection) that I often use to evaluate web frameworks, and I''m trying to get it working on Rails 1.2.0RC1. Specifically, I have three classes which subclass a common Artist class: - Band (name:string) - Musician (first_name:string, last_name:string) - Duo (first_artist:Artist, other_artist:Artist) I''m using single table inheritance to store all of the fields for the various Artist types in one table. I want the ''name'' attribute to be deriv...
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_ma...
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 som...