Render file in index


I am trying to render file in controller like this :
def index
render :flie => ‘app\views\upload\uploadfile.html.erb’

It still complains that template is missing.

Template is missing
Missing template upload/index.html.erb in view path /home/rails/

Do i have to use funtion render :template or how i can change that
default index.html.erb

u can use send_data :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs