0
The Rails interpreter is sending me this message in the following line of code:
...
<li>
<%= form_tag("search", { method: "get", class: "navbar-form navbar-right", role: "search" }) do %>
<div class="inner-addon right-addon">
<i class="glyphicon glyphicon-search"></i>
<%= text_field_tag (:q, nil , { class: "form-control", height: "25", width: "25" } ) %>
</div>
<% end %>
<li>
...
There must be something wrong with passing the form_tag or text_field_tag hash but I can’t identify it
as the error says, it is waiting to close the function with ) and you are including one more unexpected parameter... check which is the exact line of the error and review if all parameters are expected.
– Jader A. Wagner
The error message undoubtedly includes the exact line number and character position of that line. Check this.
– Guilherme Bernal
Got here, the line of error was this:
<%= text_field_tag (:q, nil , { class: "form-control", height: "25", width: "25" } ) %>
I switched to:<%= text_field_tag :q, nil, { class: "form-control", size: "25x25" } %>
E worked ... I just don’t know why...– Vitor Vezani
@Awkward Post the solution as a response and mark it as accepted
– user7261
@Andrey I did not publish as an answer, because even solving the problem I did not know why. Guilherme did a great job explaining. Next time I put as an answer, it makes more sense anyway.
– Vitor Vezani