I am invoking a controller action to perform an AJAX request search from two different pages and want to display a different rjs file based on which page requested the action. I could just do 2 actions to do this, but it doesn't seem very dry when the same code in the action just needs different rjs as it displays the search results differently in the presentation.
Using Rails 2.3.4 and Ruby 1.8.7
If I understand your question correctly, you need to solve three ways:
http_referrer
№ 2, , , , , №3 . , , , . , ...
? . , .
# 2 , . ApplicationController mime, .
, (: "show.employees-autocomplete.rjs", "show.quotation-autofill.rjs" ).
Source: https://habr.com/ru/post/1722023/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722018/pass-list-of-variables-to-bash-script&usg=ALkJrhhBx0S_Jm3WYY1GikDirmD7JEIN-gAre Winforms accessible from Unmanaged C ++? - c ++Reading NSNumber from NSData - cWix CustomAction session.Log не работает - loggingИзображение не отображается, когда ширина и высота определяются в процентах с помощью родительского элемента- htmlMemcache service not working - how to handle? - .netAuthentication of every call in WCF - silverlightCocoa: Reverting to a previous active application? - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722027/when-refactoring-a-project-to-improve-maintainability-what-are-some-of-the-things-to-target&usg=ALkJrhg4ynzOtfHeV-afdQkd7IqK_9C6RgRhino Mocks limitations and dictionary options - c #All Articles