url(:this) not returning the correct value

0 views
Skip to first unread message
Message has been deleted

Ming

unread,
Dec 21, 2009, 6:12:05 PM12/21/09
to merb
(reposted with a correction in the text)

I have a url

http://127.0.0.1:4000/countries/america/states/texas

but the template for that page containing

url(:this)

returns

/countries/america

not the full URL. (I assume it should do so--I haven't any formal
documentation stating this.)

the relevant portions of my route contain

match('/countries').
to(:controller => :countries, :action => "index_countries").
name(:country_index)

match('/countries/:apple/states/:orange/cities').
to(:controller => :countries, :action => "index_cities").
name(:country_cities)

match('/countries/:apple/states/:orange/towns').
to(:controller => :countries, :action => "index_towns").
name(:country_towns)

match('/countries/:book(/states/:ditch)(/cities/:emu)(/
towns/:fud)').
to(:controller => :countries, :action => "index_restaurants").
name(:country_restaurants)

Reply all
Reply to author
Forward
0 new messages