Ok
this is application helper:
module ApplicationHelper
def seo_meta
content_for(:meta) do
"<meta content='keywords' name='keywords' />"
end
end
end
My template (application.html.erb):
<%= yield(:meta) %>
...
My other view that yields (index.html.erb):
<%= seo_meta %>
On 21 авг, 09:31, Alpha Blue <[email protected]> wrote:
> You should show some actual code so that people can assist you.
>
> <%= yield :meta %>
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---