chrismccord / labrador

A loyal data retriever for your Rails development databases.
http://chrismccord.github.com/labrador/
253 stars 15 forks source link

Sanitize project names into valid url format #22

Closed davidstump closed 11 years ago

davidstump commented 11 years ago

Update referencing feature request: chrismccord/labrador#17

I added a url_name method to the App class that sanitizes the project name into something more url friendly and valid. An example would be:

Labrador::App.url_name("Crazy Project Name") => 'crazy-project-name'

This allows you to use labrador with wacky projects such as "http://crazy-project-name.labrador.dev"

Take a look and let me know what you think about both the method and the naming rules/adjustments for projects.

Thanks! David

davidstump commented 11 years ago

Chris,

I am going to finish testing a new update that implements arbitrary queries and will reopen when finished.

Thanks! David