Kad Kerforn wrote in post #1084737: > if generated content is different > > match '/en/:param1/abc', :to => 'foo#param1' > > and you will have different actions #xyz , #mnb , #xkj, #cbc in > your > foo controller > with same layout > > can you clarify using samples urls ? > > > > Le vendredi 16 novembre 2012 09:48:45 UTC+1, Ruby-Forum.com User a crit > : sample urls . http://0.0.0.0:3000/fr/School_1/index http://0.0.0.0:3000/fr/School_1/about_us http://0.0.0.0:3000/fr/School_1/admission
http://0.0.0.0:3000/fr/School_2/index http://0.0.0.0:3000/fr/School_2/about_us http://0.0.0.0:3000/fr/School_2/admission http://0.0.0.0:3000/fr/School_3/index http://0.0.0.0:3000/fr/School_3/about_us http://0.0.0.0:3000/fr/School_3/admission http://0.0.0.0:3000/fr/School_4/index http://0.0.0.0:3000/fr/School_4/about_us http://0.0.0.0:3000/fr/School_4/admission It shares same layout means class School_1Controller < ApplicationController layout "shared_layout.html.erb" end class School_2Controller < ApplicationController layout "shared_layout.html.erb" end . . . -- Posted via http://www.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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

