NB: I'm sure this is me just being confused, but... in my router.rb, I
have:
resources(:posts, :keys =>
[:created_year, :created_month, :created_day, :slug])
And in my template, I'm doing something like:
resource(post,
:created_year => post.created_year,
:created_month => post.created_month,
:created_day => post.created_day,
:slug => post.slug)
But it's giving me URLs like:
/posts/2008/10/22/should-i-freak-out.1
and:
Params: {"created_day"=>"22", "slug"=>"should-i-freak-out",
"format"=>"1", "created_month"=>"10", "action"=>"show",
"controller"=>"posts", "created_year"=>"2008"}
Why is the format being set to the ID of the object? What am I doing
wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---