so I am new to RoR and am not sure what the proper method is for what I am trying to do. So this is what I have:
class Artist < ActiveRecord:Base
def self.search(search)
Artist.create(:artist_name => x, artist_info => ... etc)
I've shortened it for simplicity but you get the point. Now I have another model called "Album". I want to create an Album database entry along side the artist one but I simply create it as Albums.create(...) obviously because I am not within the Albums class. Would it be possible to call a function within the Albums class within my search method in Artist?
Something like:
class Artist < ActiveRecord:Base
def self.search(search)
Artist.create(:artist_name => x, artist_info => ... etc)
Albums.method(search)
Class Album < ActiveRecord:Base
def self.method(search)
etc