Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update for a bug with regarding to _path on rails 3 #6

Merged
merged 1 commit into from

2 participants

@Pallinder

Used to generate routes such as route_name_path_path now its generating the correct name

@mtrpcic mtrpcic merged commit ec0804b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 22, 2011
  1. @Pallinder
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  js.rake
View
2  js.rake
@@ -58,7 +58,7 @@ def generate_routes_for_rails_3
Rails.application.reload_routes!
processed_routes = []
Rails.application.routes.routes.each do |route|
- processed_routes << {:name => route.name + "_path", :path => route.path.split("(")[0]} unless route.name.nil?
+ processed_routes << {:name => route.name, :path => route.path.split("(")[0]} unless route.name.nil?
end
return processed_routes
end
Something went wrong with that request. Please try again.