Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Change in the way to set permalinks #42

Open
wants to merge 1 commit into from

1 participant

@OyoKooN

Replaced calls to #gsub by #parameterize introduced in Rails 3.

Nathan Le Ray Change in the way to set permalinks
Replaced calls to #gsub by #parameterize introduced in Rails 3.
40a9197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 26, 2011
  1. Change in the way to set permalinks

    Nathan Le Ray authored
    Replaced calls to #gsub by #parameterize introduced in Rails 3.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/episode.rb
View
2  app/models/episode.rb
@@ -169,6 +169,6 @@ def self.primitive_search_conditions(query, join)
end
def set_permalink
- self.permalink = name.downcase.gsub(/[^0-9a-z]+/, ' ').strip.gsub(' ', '-') if name
+ self.permalink = name.parameterize if name
end
end
Something went wrong with that request. Please try again.