search for: web_resourc

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

Did you mean: web_resources
2006 Jan 06
1
Unit Testing - Persistence of Destroyed Objects?
I was doing some unit testing today and came across something that surprised me. Either I am confused, or destroyed objects persist in memory when doing unit testing. To explain: I have a model, Author, which ''has_many :web_resources''. One type of "web resource" for an Author is the authors website. So, to facilitate easy creation/lookup of websites for authors, I did the following in author.rb (simplified): def website=( str ) wr = self.web_resources.first # We delete the first web resource if st...
2007 May 18
0
Naming convention and search engines
...in your URLs. Let''s say I create a small test app. # rails test create a controller, edit the controller, create a template, and run the server # script/generate controller WebResources # do the manual editing stuff here. # script/server webrick To access the page: http://localhost:3000/web_resources/index Works fine. I''m wondering if there is a way to reference the above URL using hyphens to make the spiders happy?? http://localhost:3000/web-resources/index Any thoughts?? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are su...