Skip to content

Instantly share code, notes, and snippets.

@temojin
Created September 18, 2010 01:04
Show Gist options
  • Save temojin/585215 to your computer and use it in GitHub Desktop.
Save temojin/585215 to your computer and use it in GitHub Desktop.
# in padrino 0.9.15 it not able to get params[username] in before filter.
before do
logger.debug "before"
logger.debug params
logger.debug params[:username] # empty in 0.9.15 but works in 0.9.14
logger.debug "request"
logger.debug request.params
end
get :users, :with => :username do
logger.debug "users"
logger.debug params.inspect
params[:username]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment