u can use send_data :)
On Wed, Jul 9, 2008 at 12:09 PM, torso
<petteri.torssonen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi
>
> I am trying to render file in controller like this :
> def index
> render :flie =>
''app\views\upload\uploadfile.html.erb''
> end
>
> It still complains that template is missing.
>
> Template is missing
> Missing template upload/index.html.erb in view path /home/rails/
> directory/app/views
>
> Do i have to use funtion render :template or how i can change that
> default index.html.erb
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---