css - Rails 3 - link_to applying a style -


i trying apply style link rails generating class html in such way not render html in standard way.

asset pipeline off

how can resolve this?

thanks

here link_to code:

<%= link_to "create new account",  :action => "signup", :class =>"gray_button"  %> 

generated rails output - (does not apply style)

<a href="/login/signup?class=gray_button">create new account</a><br /> 

when edit html in firebug renders

<a href="/login/signup" class="gray_button">create new account</a><br /> 

in rails 3 need use hash so:

<%= link_to "create new account",{:action => "signup" }, :class => "gray_button" %><br /> 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -