If you use render :file, the path that it takes is the absolute path from the file system so it would be expecting c:\\...file or /pathl...file
try just using render :template => a On Mon, Jul 6, 2009 at 11:36 AM, Kenny Ortmann <[email protected]>wrote: > Ok, i thought maybe it was not setting @channel.urlsuffixtofind because it > says it can't find "index.html" it didn't say anything about > "/test/.../index.html" > > It doesn't seem like this would be an active scaffold issue, there is > something going on with the rails file rendering where it isn't finding your > file, have you tried putting /public at the beginning of your path by any > chance? > > > > > On Mon, Jul 6, 2009 at 11:24 AM, JannaB <[email protected]> wrote: > >> >> Kenny, >> >> When I output it with: >> >> <% a = "#[email protected]}/index.html"%> >> <% puts a %> >> <%= render :file => a %> >> >> It outputs: >> /test/ggriptest/index.html >> >> and I get the error in the browser of: >> >> ActionView::MissingTemplate in Channels#uplog >> >> Showing app/views/channels/_formgeneric.html.erb where line #10 >> raised: >> >> Missing template index.html in view path vendor/plugins/ >> active_scaffold/frontends/default/views >> >> Extracted source (around line #10): >> >> 7: <% if @minimenu == 'uplog' %> >> 8: <% a = "#[email protected]}/index.html"%> >> 9: <% puts a %> >> 10: <%= render :file => a %> >> 11: <% end %> >> 12: </div> >> >> Trace of template inclusion: app/views/channels/display.html.erb >> >> RAILS_ROOT: G:/INSTAN~2/rails_apps/ggripv2 >> Application Trace | Framework Trace | Full Trace >> >> G:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ >> action_view/paths.rb:66:in `find_template_without_active_scaffold' >> G:/INSTAN~2/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/ >> extensions/generic_view_paths.rb:11:in `find_template' >> G:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ >> action_view/base.rb:259:in `render_without_active_scaffold' >> G:/INSTAN~2/rails_apps/ggripv2/vendor/plugins/active_scaffold/lib/ >> extensions/action_view_rendering.rb:61:in `render' >> G:/INSTAN~2/rails_apps/ggripv2/app/views/channels/ >> _formgeneric.html.erb:10:in >> >> `_run_erb_app47views47channels47_formgeneric46html46erb_locals_formgeneric_object' >> G:/INSTAN~2/rails_apps/ggripv2/app/views/channels/display.html.erb: >> 7:in `_run_erb_app47views47channels47display46html46erb' >> G:/INSTAN~2/rails_apps/ggripv2/app/controllers/channels_controller.rb: >> 57:in `uplog' >> >> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
