Rails routing question: how to pass a hash property to a generated resource?
Posted
by SergioB
on Stack Overflow
See other posts from Stack Overflow
or by SergioB
Published on 2010-05-12T19:37:05Z
Indexed on
2010/05/12
19:54 UTC
Read the original article
Hit count: 119
rails
|ruby-on-rails
say I have this on my routes.rb:
resources :accounts
which gives me, among other things:
new_account GET /account/new
I need to generate this (for example) "/account/new#test"
How do you pass the "#test" to new_account_path()
?
© Stack Overflow or respective owner