Hi all,
In my GamesController I try to render create_or_update.js that is
stored in the events view dir. Apparently Rails alwayslooks in the
games view dir.
Is there a way I can force Rails to look in the events view dir?
class GamesController < ApplicationController
def create
@event = Game.new(params[:game])
respond_to do |format|
if @event.save
format.js { render :action => '../events/create_or_update' }
#doesn't work
end
end
end
end
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---