Skip to content

Instantly share code, notes, and snippets.

@joshrendek
Created April 15, 2011 23:49
Show Gist options
  • Save joshrendek/922668 to your computer and use it in GitHub Desktop.
Save joshrendek/922668 to your computer and use it in GitHub Desktop.
def installer_files
render :layout => nil
file_name = params[:file]
#if file_name == 'core'
# render :text => File.open(RAILS_ROOT + "/agents/bar.py", "r").to_s
#elsif file_name == 'services'
#
#else
# render :text => 'foo'
#end
render :text => "test"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment