Andrew
2012-Apr-19 18:34 UTC
Embedding a controller view within another controller view (along with embedded js files)
In my rails app I have a controller view, users#show. I''d like to render a different controller view either as an iframe or as a partial within users#show. Let''s say it is pages#somepage (the controller simply returns an html view, no other processing or actions are performed). However inside of the html code that''s returned are references to a bunch of javascript files. They themselves link to other js files. I have not been able to link against them. Does anybody have suggestions? Here''s what I tried so far - putting the files in the controller folder didn''t work - using the public folder does work but it exposes the files to unauthenticated users and i want to avoid that -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ketMh8RCRV8J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.