Re: [rspec-users] route_for and nested resources

2008-01-27 Thread David Chelimsky
On Jan 27, 2008 7:47 PM, Jonathan Linowes <[EMAIL PROTECTED]> wrote: > Note, named routes cannot be accessed unless you have a response (eg after > you've run a controller action) > See > http://rspec.lighthouseapp.com/projects/5645/tickets/201-enable-named-urls-before-response Since you bring it

Re: [rspec-users] route_for and nested resources

2008-01-27 Thread Jonathan Linowes
Note, named routes cannot be accessed unless you have a response (eg after you've run a controller action) See http://rspec.lighthouseapp.com/projects/5645/tickets/201-enable- named-urls-before-response On Jan 27, 2008, at 8:26 PM, Matt Darby wrote: On Jan 27, 2008, at 8:05 PM, David Chelim

Re: [rspec-users] route_for and nested resources

2008-01-27 Thread Matt Darby
On Jan 27, 2008, at 8:05 PM, David Chelimsky wrote: On Nov 21, 2007 3:10 PM, Chris Olsen <[EMAIL PROTECTED]> wrote: I can't figure out how to make the updates to allow for the route_form method to return a url that matches the expected. Here is a sample route_for(:controller => :task, :actio

Re: [rspec-users] route_for and nested resources

2008-01-27 Thread David Chelimsky
On Nov 21, 2007 3:10 PM, Chris Olsen <[EMAIL PROTECTED]> wrote: > I can't figure out how to make the updates to allow for the route_form > method to return a url that matches the expected. > > Here is a sample > route_for(:controller => :task, :action => :new).should == "/task/new" > > If a task ha

Re: [rspec-users] route_for and nested resources

2008-01-27 Thread David Chelimsky
On Jan 27, 2008 6:27 PM, Matt Darby <[EMAIL PROTECTED]> wrote: > Chris Olsen wrote: > > I can't figure out how to make the updates to allow for the route_form > > method to return a url that matches the expected. > > > Sorry to bump such an old post, but the interweb doesn't really show > anything

Re: [rspec-users] route_for and nested resources

2008-01-27 Thread Matt Darby
Chris Olsen wrote: > I can't figure out how to make the updates to allow for the route_form > method to return a url that matches the expected. Sorry to bump such an old post, but the interweb doesn't really show anything for routing specs when it comes to nested resources. I just find this una

[rspec-users] route_for and nested resources

2007-11-21 Thread Chris Olsen
I can't figure out how to make the updates to allow for the route_form method to return a url that matches the expected. Here is a sample route_for(:controller => :task, :action => :new).should == "/task/new" If a task has to be created for a user, how exactly do I do this. The following doesn't