Hi, I''m trying generate a URL from a named route like: namedroute_url(params...) but the generated route is always coming out as the first match from the routes table. The named route is defined inside a map.with_options block, but that shouldn''t matter should it? dorian -- -- I do things for love or money
On 5/23/06, Dorian Mcfarland <loaf@isness.org> wrote:> I''m trying generate a URL from a named route like: namedroute_url(params...) > but the generated route is always coming out as the first match from the routes table. > > The named route is defined inside a map.with_options block, but that shouldn''t matter should it?An example of what you''re trying to do, what your routes.rb file looks like, and what you''re getting as output would be pretty helpful.
sorry... I''ve just realised what my mistake was. routes are working as expected! next time (when there''s a real error) I''ll post some code dorian James Ludlow wrote:> On 5/23/06, Dorian Mcfarland <loaf@isness.org> wrote: >> I''m trying generate a URL from a named route like: >> namedroute_url(params...) >> but the generated route is always coming out as the first match from >> the routes table. >> >> The named route is defined inside a map.with_options block, but that >> shouldn''t matter should it? > > An example of what you''re trying to do, what your routes.rb file looks > like, and what you''re getting as output would be pretty helpful. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- -- I do things for love or money