Topic: Erb Syntax

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

Re: Erb Syntax

danielgeorgy wrote:

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


Trying to help:
blank? is a method to check if an object is exist. It will return true if an object is exist, and false if not.

!  - as far as I know, the sign is for returning the opposite value:
For example : !false will return true.

Sorry if it's not correct and not help.

Re: Erb Syntax

thanks Kevin.