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.
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.
The official documentation can be found here:
or use `ri ERB' in the command line.
<%! if filmstrip_image_path.blank? %>
Also what does this '?' do in the above code
It's just part of the method name `blank?'.
By convention, methods with a name ending with
a question mark return a boolean value, false or true.
okay what about the '!' in <%! if filmstrip_image_path.blank? %>
unknown wrote in post #1081937:
···
Am 30.10.2012 05:59, schrieb Georgy Daniel:
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.
Sorry, no clue. It doesn't seem to be a part of erb.
I guess it should be parsed as a boolean `not'.
But to see whether that makes sense here, you would have
to provide more of the surrounding code, especially the
rest of the if statement.
···
Am 30.10.2012 10:33, schrieb Georgy Daniel:
okay what about the '!' in <%! if filmstrip_image_path.blank? %>
<%! if filmstrip_image_path.blank? %>
<div id="main-page">
<img src="resources/image.jpg" alt="My Image"></img>
<img id="main-page-text" src="resources/image.png"></img>
</div>
<%! end %>
unknown wrote in post #1081950:
···
Am 30.10.2012 10:33, schrieb Georgy Daniel:
okay what about the '!' in <%! if filmstrip_image_path.blank? %>
Sorry, no clue. It doesn't seem to be a part of erb.
I guess it should be parsed as a boolean `not'.
But to see whether that makes sense here, you would have
to provide more of the surrounding code, especially the
rest of the if statement.