I needed to add a simple change to foo_path, so I did this:
module ApplicationHelper
# [...]
def foo_path(foo, options = {})
option
Looks like you are facing wrong way. You would better add :bar param in your route, like:
get :foo, :bar => "bar"
Otherwise, please provide more descriptive details about your problem.
Edit.
Here is the solution(basic on your post update):
class ApplicationController < ActionController::Base
def foo_path(foo, options = {})
options.merge!(bar: foo.some_attribute)
super
end
helper_method :foo_path
end