Displaying 1 result from an estimated 1 matches for "transcoder_queue".
2007 Dec 18
2
Active Resource and non default model names
...#39; so it is accessed as ''/
transocder_queue'' as opposed to ''/transocder_qeueus''.
class TranscoderQueue < ActiveRecord::Base
belongs_to :campaign, :class_name => "Campaign", :foreign_key =>
"campaign_id"
set_table_name "transcoder_queue" # overriding rails conventions
validates_presence_of :campaign_id, :on => :create
end
Now, when I try to use the active resource lib to interface my API, it
defaults to the rails pluralized name, ''transcoder_queues'' --
obviously this fails with 404. How can I set ac...