Skip to content

Instantly share code, notes, and snippets.

@awilkening
Created March 26, 2014 15:17
Show Gist options
  • Save awilkening/9785745 to your computer and use it in GitHub Desktop.
Save awilkening/9785745 to your computer and use it in GitHub Desktop.
namespace :users do
resources :clients do
scope 'applications', as: 'applications', klass: Application do
resources :submit_applications, only: [:update]
end
resources :applications
end
end
= form_for application, url: users_client_application_submit_application_path(client, application) do |f|
= f.submit
=> undefined method 'integer' for <Class<Class:4245234524t>2345234523452>
@adkron
Copy link

adkron commented Mar 26, 2014

Yeah, I think this was fixed later, but I'm not sure. Looks like you should pass a string and call constantize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment