Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorriffed
    • CommentTimeFeb 27th 2008 edited
     

    Excuse my ignorance but what is the significance of the colon ":" before the options. I'm guessing it marks an array ?

    <%= select_year 2008, :start_year => 1900, :end_year => 2020 %>
    
    •  
      CommentAuthorbermi
    • CommentTimeFeb 29th 2008
     

    Just a shortcut for

    <%= select_year 2008, {'start_year' => 1900, 'end_year' => 2020} %>
    

    not symbols as in Ruby (yet :) )

Add your comments
    Username Password
  • Format comments as