Hi, I am a very beginner on Ruby and related stuff, Could you please
tell me
what a tag like this "<%!" means in the following code. Also, I would
really appreciate if you can give me some ref to erb templates.

<%! if filmstrip_image_path.blank? %>

Also what does this '?' do in the above code

Thanks,
Georgy

I don't remember that it has <%! as the syntax. However, it could be interpreted as follows:

<% ! if filmstrip_image_path.blank? %>
or
<%!if filmstrip_image_path.blank?%>

So, what it means is ...

<% not if filestrip_image_path.blank? %>

Now, the blank? is a method call for the variable class. In this case, it should return either true or false because of the not (!) sign.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.