Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
forkrulassail
on Jan 6, 2011
|
parent
|
context
|
favorite
| on:
R.I.P. Ruby Hash Rocket Syntax 1993-2010
Now if only you could change
list.sorting = {:name => 'ASC'} to list.sorting = {:name: 'ASC'}
darshan
on Jan 7, 2011
[–]
I'm not familiar with the particular 'sorting' thing you're doing, but if the first things works, then the second should work in 1.9 if you use the correct syntax -- you have an extra colon. It should be: list.sorting = {name: 'ASC'}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
list.sorting = {:name => 'ASC'} to list.sorting = {:name: 'ASC'}