carmen-ruby / carmen-rails

NOT ACTIVELY MAINTAINED Rails adapter for Carmen (provides country_select and subregion_select)
MIT License
215 stars 159 forks source link

Rails 4 Params #39

Closed FrostDuke closed 10 years ago

FrostDuke commented 10 years ago

I followed the instructions to the letter but I'm getting the following params:

Started GET "/jobs/subregion_options?parent_region=BR" for 127.0.0.1 at 2013-12-13 21:01:09 +0000 Processing by JobsController#show as HTML Parameters: {"parent_region"=>"BR", "id"=>"subregion_options"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1 Job Load (0.2ms) SELECT "jobs".* FROM "jobs" WHERE "jobs"."id" = ? LIMIT 1 [["id", "subregion_options"]] Completed 404 Not Found in 4ms

ActiveRecord::RecordNotFound (Couldn't find Job with id=subregion_options): app/controllers/jobs_controller.rb:75:in `set_job'

Anyone else had this issue, why is it assigning it to my jobs id? Might be a newbie question.