#1008 ✓resolved
Arnaud D.

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages