Class: SpudInquiryForm
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SpudInquiryForm
- Defined in:
- app/models/spud_inquiry_form.rb
Instance Method Summary collapse
Instance Method Details
#generate_url_name ⇒ Object
12 13 14 15 16 |
# File 'app/models/spud_inquiry_form.rb', line 12 def generate_url_name if !self.name.blank? self.url_name = self.name.gsub(/[^a-zA-Z0-9\ ]/," ").gsub(/\ \ +/," ").gsub(/\ /,"-").downcase end end |