Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
allow id to be nil in route
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie committed Jun 30, 2012
1 parent ca51bde commit 358d3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,7 +1,7 @@
RailsAdmin::Engine.routes.draw do
controller "main" do
scope ":model_name" do
scope ":id/:field" do
scope "(:id)/:field" do
get "/jcrop", :to => 'jcrop#edit', :as => :jcrop
put "/jcrop", :to => 'jcrop#update'
end
Expand Down

0 comments on commit 358d3e8

Please sign in to comment.