search for: artistes

Displaying 20 results from an estimated 1059 matches for "artistes".

Did you mean: artist's
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. I cant use paintings#index for this anymore
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
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 done. the data look like this Artist
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:
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
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
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.
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: ActiveRecord::HasManyThroughSourceAssociationNotFoundError: Could not find the source
2017 Mar 03
0
Icecast status-json.xsl improvements
Hi, thanks for your e-mail and detailed description. On 3 Mar 2017, at 12:51, Roger Hågensen wrote: > 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
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 artist model, I created a getter: def foobar end When the form is
2006 Aug 07
2
Dynamically created queries
Hello, I am having difficulty dynamically building a query. I want to ensure that I''m using Active Record protection against SQL injection attacks. In PHP land, I would have built up the query in my logic & attempted to clean every variable - a bit tedious really. I want to be able to achieve something like: events = Event.find(:all, :conditions => [**DynamicallyBuiltQuery**
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
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 seems tobe working, in that both the artist and title are
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"> <%= builder.label :name %> <%= builder.text_field :name %>
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,
2006 Dec 26
0
alias_method_chain vs. redefined method with super
I''m trying to fully understand the subtleties of using alias_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
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
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