in my routes.rb i have
match "monsters/:category" => "monsters#index"
i have a bunch of links such as
- Water
- Fire
- Earth
- Flying
however im having trouble passing "Water" or "Fire" as the :category for my routes. how exactly do i do that?
i tried something like...
<%= link_to "Water", "monsters/water"(:category => "water") %>
but syntactically i cant do that. how do i pass in "water" as the :category symbol?
thanks!