Hey all,

I'm trying to translate this:

<%
render_tabnav :home,
              :generate_css => true do
    add_tab do |t|
      t.named 'home'
      t.titled "Go to #{name.camelize}"
      t.links_to :controller => name
end

%>

into this haml code:

- render_tabnav :main, :generate_css => true do
  = add_tab do |t|
    t.named 'home'
    t.titled "Go to home"
    t.links_to :controller => 'name'


but I keep getting this error:
you must provide a name
Extracted source (around line #2):
1: - render_tabnav :main, :generate_css => true do
2:   = add_tab do |t|
3:     t.named 'home'
4:     t.titled "Go to home"
5:     t.links_to :controller => 'name'

any idea what's wrong?

thanx in advance

Pat

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to