Hi Everyone, this is my first post on Ruby on Rails, I've managed to get up 
and running with Rails 4.1 on FreeBSD with Nginx and Ruby 2.1.1. 

My issue is this:

I have a folder located at /public/swf/ that contains numerous swf files I 
want to load as a background for every page of my site. I've successfully 
created a controller with a randomize method and a corresponding view that 
loads the backgrounds randomly. The problem I'm having a bit of trouble 
with now is getting the output of /background/randomize.html.erb and 
putting that output into the application layout so the backgrounds load on 
every page. My HTML/CSS is just fine, however I can't seem to include that 
in the application view.


Would I be using the render method, content_for, or capture do for taking 
the raw parsed HTML output of background/randomize and putting it in the 
application layout?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/148db7b8-ef1f-4d92-8d01-bd85db914ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to