Incomplete hobo_routes for action new
Reported by Arnaud D. | May 21st, 2012 @ 10:19 PM
Hi,
It appears that the generated file hobo_routes.rb misses the controller part in the routes for new actions.
I see this issue in Hobo 1.3 and Hobo 1.4.
To correct that (hobo 1.4), file
hobo/lib/generators/hobo/routes/router.rb can be modified like this
:
Line 43
link("get '#{records}/new(.:format)', :as => 'new_#{record}'", 'new'),
becomes
link("get '#{records}/new(.:format)' => '#{records}#new', :as => 'new_#{record}'", 'new'),
No really a blocking issue but annoying when we need to copy-paste content into routes.rb.
Best regards,
Arnaud.
Comments and changes to this ticket
-
Tom Locke May 25th, 2012 @ 03:22 PM
(from [aa67dcb504c1be28a2da43cb35c5c457799c273c]) [#1008] fix for #new routes missing their controller, plus a typo fix
BIgnore .svn folders
Correct mistake in front_controller
Missing link to controller new in generated hobo file
https://github.com/tablatom/hobo/commit/aa67dcb504c1be28a2da43cb35c... -
Bryan Larsen May 25th, 2012 @ 03:25 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป