with_options

Hi    why is this used in routes.rb I have code like below But I did not understand what it means Could anybody please clarify this?

map.with_options(:controller => "companies") do |companies_map|

companies_map.companies_view_custom_field_permissions '/companies/view_custom_field_permissions',      :action => 'view_custom_field_permissions'

companies_map.with_options(:my_company => true) do |my_company_map|       my_company_map.my_company '/my_company/:company_id', :action => 'show', :company_id => 'root'

end

end

Thanks in advance Sijo

Hi why is this used in routes.rb I have code like below But I did not understand what it means Could anybody please clarify this?

Fred