I have problem with routes in my gem. I have this example code for
adding routes :
match "/gallery/get/:id" => "gallery/
And I'm trying to test it by :
class RoutestTest < ActionController::TestCase
test 'map gallery get' do
assert_routing '/gallery/get/1', :controller => "gallery/
view", :action => "get"
I added puts Rails.application.routes.routes to see routes. Then I try
to test it I get :
ActionController::RoutingError: No route matches "/gallery/get/1"
What I'm doing wrog or is it any rails bug ?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.