search for: create_permalink

Displaying 2 results from an estimated 2 matches for "create_permalink".

2009 Apr 13
4
Creating Methods in the Model?
Hey Everyone. First day diving in to ROR and Ruby... My question is how do you define methods with in the model class and/or should I even be doing this? It is my understanding that you should put as much of the business logic into the model as possible. I want to do some data manipulation before I things are submitted to the database IE (Create a variable out of two submitted via form, as
2006 Mar 24
3
String manipulation
I need to make some nicenames from my post titles, like: - convert spaces to "-" - delete all the !,?,commas,.,;.:,* from the string How can I do? Sorry for the noob question... Oh, and another thing... How can I make permalink this way: Not .../blog/show/4 but .../category/nicename ? Thankyou. -- Posted via http://www.ruby-forum.com/.