What will be the erb code for below haml code?
content_for :head do
= stylesheet_link_tag "plupload.queue"
= javascript_include_tag "plupload/plupload.full.min", "plupload/jquery.plupload.queue.min"
= javascript_tag do
= render "plupload.js"
photos_container
= render :partial => "photo", :collection => @photos
uploader
%p You browser doesn't have HTML5, Flash or Silverlight support.
I advise to read HAML and ERB documentation as it basics for your development process. There is a lot of information around this, so try to use search before you ask.
Your ERB code:
In Rails 3 you can optimize your code, if you use app/views/photos/_photo.html.erb partial. Rails determines the name of the partial to use by looking at the model name in the collection.
Like this:
Read about rendering in Rails 3:
http://guides.rubyonrails.org/layouts_and_rendering.html#using-render