Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created May 4, 2010 14:46
Show Gist options
  • Save NickClark/389486 to your computer and use it in GitHub Desktop.
Save NickClark/389486 to your computer and use it in GitHub Desktop.
class CampMeetingReservation < ActiveRecord::Base
end
undefined method `camp_meeting_reservations_path' for #<ActionView::Base:0x10339f630>
class Events::CampMeeting::ReservationsController < ApplicationController
def index
redirect_to :action => "new"
end
def new
@reservation = CampMeetingReservation.new
end
end
map.namespace :events do |events|
events.namespace :camp_meeting do |camp_meeting|
camp_meeting.resources :reservations
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment