stupid question

Daniel Owen van Dommelen wrote:

I know this is really at the beginner level (as am I) but when I try to use an else if clause within my conditional loop I get some errors, which I probably know where they come from, but I can't find the solution.

Probalbly I need to use another ruby opening and closing tag. My code looks like this now:

<div id="aanmelden">     <% if params[:type] == "tenant" %>     <h1>Huurder aanmelden</h1>     <%= render_partial "tenant_form" %>     <% else if params[:type] == "landlord" %>     <h1>Verhuurder aanmelden</h1>     <%= render_partial "landlord_form" %>     <% end %> </div>

I need to use "-" somewhere within the ruby tags, right? My question is... where??

Many thanks and greetings,

Danny

You want elsif not else if