#54 ✓resolved
Scott

order_by_link and Decimal Data

Reported by Scott | February 18th, 2009 @ 12:32 AM

I have a table with many columns all working fine except for one. The code for the column is: <%= order_by_link(:myscal, :text => "Score", :html => {:class => "linkth"}) %>

When I click on the column title "Score" I get the following error: :order_by can only contain colum names in the string, hash, or array format

Which is in the controller as: @search = Myscore.new_search(params[:search])

The data type for :myscal is DECIMAL(3,1)

Thanks, Scott

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket

Pages