Reputation: 7135
I have a controller "ott_controller.rb" in the folder "api".
My routes look like this:
map.namespace :api, :path_prefix => 'api' do |api|
api.connect 'ott/playlists/:id.xml', :controller => 'ott', :action => 'playlists', :conditions => { :method => :get }
end
I'm trying to create a helper file for this, but I can't get it to pick up.
In the helpers folder, I've tried the following
None of those work.
This is a rails 2 project.
Any ideas?
Upvotes: 2
Views: 2454
Reputation: 3409
Did you namespace the helper file as well? This should work:
app/helpers/api/ott_helper.rb
In the file:
module Api::OttHelper
Upvotes: 3