Just a quick tip:
It is possible to pass a :layout option to a render :partial call like this
<%= render :partial => 'some_list', :layout => 'list_widget' %>
Just a quick tip:
It is possible to pass a :layout option to a render :partial call like this
<%= render :partial => 'some_list', :layout => 'list_widget' %>
Tags: layout, layout for partials, partials, rails, ruby, ruby on rails, tip, views
If you would like to send HTML Emails with all the bells and whistles that Actionpacks Actionview provides checkout my freshly released plugin awesome_email on github.
It will enable you to use layouts/templates for your HTML Emails and it will inline CSS information inside the HTML to make sure it works in almost all Email clients.
For more information see my blogpost on imedo’s devblog about awesome_email
Tags: actionmailer, actionpack, actionview, awesome email, awesome_email, css, css inline, development, email, email clients, github, html, imedo, layouts, open source, opensource, plugin, rails, rails plugin, render email, ruby, ruby on rails, templates
Arclite theme by digitalnature | powered by WordPress