I am trying to write this :
%meta{ :name => "keywords", :content => "#{@page_city}, #{truncate_words(@page_keywords, 7) || 'Meta, Words, Are, Dope, For, SEO'}"}
Basically it sees if there is a local page that has a page city or keywords and adds those as they meta keywords. If it doesn't, it says the latter.
This works, but the only problem is that first comma after page_city is appearing. So right now it appears as ..
<meta content=', Meta, Words, Are, Dope, For, SEO' name='keywords' />
Does anyone know how to include that "," into the embedded variables as well?