Ruby on Rails
Tuesday, March 4, 2014
Hello Everybody
-- I have a navigation that draws data from a category table, I would like to display the navigation by category ID order, this is the code I have so far
<%= link_to category.title, category_path(category) %> in the view
not sure where to go next to get order by category id
Steven
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/47a200f9-f320-47cc-9a4e-97fb04d443d6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment