search for: blogscontroller

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

Did you mean: blogcontroller
2006 Jul 12
1
routing: controllers ''user'' and ''user/blogs'' not possible?
...searching for discussions on this issue to see whether this is a bug or feature in Rails'' routing mechanism. Say I have a UserController corresponding to URL pattern /user, and now I want to have a separate controller under user called blogs, using the controller module feature, User::BlogsController, corresponding to URL pattern /user/blogs. Such design looks intuitive but it looks like in Rails 1.1.4, this is still not possible. In routes.rb, this would look like map.connect ''user/blogs'', :controller => ''user/blogs'' map.connect ''user'...
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to your models." (http://rspec.rubyforge.org/documentation/rails/writing/views.html