Hi Chris, > elsif works fine in haml just the way you are using it. I think it boils > down to some syntax error in your code. usually a forgotten paren or curly > brace.
i double-checked my code and i don't see any errors. Furthermore, if i change the "elsif" to "if" the code works, so i assume i use the "elsif" the wrong way? > However, can I suggest that you simply dry up this code? You're doing the > same thing three times. Why not set an instance variable to the tracks you > want to list here and then call your partial once: > > #list_tracks > = render :partial => "shared/list_track", :collection => @list_tracks > Thanks for the suggestion, i will do as you proposed. But i still would like to know why the code above is not working for future cases when i might need this......... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
