Hi All I had been using Rails 2.1.2 and in routes.rb i had a route defined like map.namespace :mysite do |mysite| mysite.questions ''/questions.:format'', :controller => ''mysite_questions'', :action => ''index'' end And now I have updated my rails version Now I get an error like this. Rails 2.3.5 application starting on 0.0.0.0:3002 Route segment "(.:format)?" cannot be optional because it precedes a required segment. This segment will be required. Kindly Help me in this. Thanks In Advance, Charanya -- Posted via ruby-forum.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Charanya Nagarajan wrote:> Hi All > > I had been using Rails 2.1.2 and in routes.rb i had a route defined > like > > map.namespace :mysite do |mysite| > > mysite.questions ''/questions.:format'', :controller => > ''mysite_questions'', :action => ''index'' > > end > > And now I have updated my rails version > Now I get an error like this. > > Rails 2.3.5 application starting on 0.0.0.0:3002 > Route segment "(.:format)?" cannot be optional because it precedes a > required segment. This segment will be required. > > > Kindly Help me in this. > > Thanks In Advance, > > CharanyaCheck this out dev.rubyonrails.org/attachment/ticket/9615/routing_should_not_warn.diff -kannan -- Posted via ruby-forum.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Thanks For the help Kannan. But I realised that,I get this error,only when I use this type of route mysite.search_questions ''/questions/search.:format/:q'', :controller => ''mysite_questions'', :action => ''search'' This works perfectly fine in the previous old version of rails not with the newer version. Kindly help. Rails List wrote:> Charanya Nagarajan wrote: >> Hi All >> >> I had been using Rails 2.1.2 and in routes.rb i had a route defined >> like >> >> map.namespace :mysite do |mysite| >> >> mysite.questions ''/questions.:format'', :controller => >> ''mysite_questions'', :action => ''index'' >> >> end >> >> And now I have updated my rails version >> Now I get an error like this. >> >> Rails 2.3.5 application starting on 0.0.0.0:3002 >> Route segment "(.:format)?" cannot be optional because it precedes a >> required segment. This segment will be required. >> >> >> Kindly Help me in this. >> >> Thanks In Advance, >> >> Charanya > > Check this out > dev.rubyonrails.org/attachment/ticket/9615/routing_should_not_warn.diff > > -kannan-- Posted via ruby-forum.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.