I have a site that currently has URLS that looks like this
Http: // local host: 3000 / public / category / 1? Category_id = 1
This SEO boy requested that it be sent to
http: // localhost: category_id = 1
Refers to the category of the referenced category and is attached to the "drop-down":
Where (: category_name)
Is it in a category for its paragraph model It is possible to set it without creating a new column.
Currently, I have it in its path too. RB file:
Obtain: 'permalink' ,: to = & gt; Items from the above category as 'Public # Show'
that
http: // localhost: 3000 / item-name-from-permalink Displays
Is it a class stopping using a similar url structure? Rails may be able to differentiate between a : permalink
and a (: category_name) -leasing
url, or the URL will need to:
class category & lt; ActiveRecord :: Base def to_param "# {self.id} - # {self.title.parameterize}" and end
URL such as http: // localhost: 3000 / categories / 1-Some-good-title
Comments
Post a Comment