Assuming I have have a text box and a button on a page written in Rails what would be the code to compare a string inputted in that box with another string (non-dynamic)?
Does Rails have the same structure as Java when testing If statements like:
IF text1 = text2 Then
... do something ...
Else
... do something ...
Thanks,
Nick
In controller