I have a route that works under 1.1.2 but does not work under edge rails. route.wishlist ''wishlist/:id'', :action => ''show_wishlist'', :id => nil, :requirements => {:id => /\d*/} This worked great without an :id, but under edge rails when I call wishlist_url with no parameters I get: "Exception: can''t convert nil into String" -- Posted via http://www.ruby-forum.com/.
Alex Wayne wrote:> I have a route that works under 1.1.2 but does not work under edge > rails. > > route.wishlist ''wishlist/:id'', > :action => ''show_wishlist'', > :id => nil, > :requirements => {:id => /\d*/} > > This worked great without an :id, but under edge rails when I call > wishlist_url with no parameters I get: > > "Exception: can''t convert nil into String"yeah nevermind. It''s working on some pages, but not others. I clearly have something more complex happening here. -- Posted via http://www.ruby-forum.com/.
Alex, in rails edge routing is highly experimental at the moment, they just checked in the new improved version, be careful, the core is using it''s full brainpower to make things go better, until then ymmv, /r/r On 6/7/06, Alex Wayne <rubyonrails@beautifulpixel.com> wrote:> Alex Wayne wrote: > > I have a route that works under 1.1.2 but does not work under edge > > rails. > > > > route.wishlist ''wishlist/:id'', > > :action => ''show_wishlist'', > > :id => nil, > > :requirements => {:id => /\d*/} > > > > This worked great without an :id, but under edge rails when I call > > wishlist_url with no parameters I get: > > > > "Exception: can''t convert nil into String" > > yeah nevermind. It''s working on some pages, but not others. I clearly > have something more complex happening here. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rodney http://www.pinupgeek.com http://www.dutchrailers.org
Rodney Ramdas wrote:> Alex, in rails edge routing is highly experimental at the moment, they > just checked in the new improved version, be careful, the core is > using it''s full brainpower to make things go better, until then ymmv,Thanks for the heads up. Maybe I''ll roll back a few revisions. -- Posted via http://www.ruby-forum.com/.
This might help. http://www.ryandaigle.com/articles/2006/06/01/whats-new-in-edge-rails-routing-refactored On 6/7/06, Alex Wayne <rubyonrails@beautifulpixel.com> wrote:> Rodney Ramdas wrote: > > Alex, in rails edge routing is highly experimental at the moment, they > > just checked in the new improved version, be careful, the core is > > using it''s full brainpower to make things go better, until then ymmv, > > Thanks for the heads up. Maybe I''ll roll back a few revisions. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/