What about using an object fetched from the controller and passing it to the path helper?
def index
@some_object = SomeObject.find(params[:id])
[...]
end
and then in your view use this object to build the route ?
link_to(t(".button_text"), main_app.some_path(@some_object), :class => "btn")