Questions tagged [carmen]

Carmen is the name of a Ruby gem providing a repository of geographic regions and of a collection of software from Carnegie Mellon University for controlling mobile robots.

"Carmen" may refer to

Carmen the Ruby gem is a repository of geographic regions for Ruby, designed to make it easy to access country and region data. It also includes replacements for Rails' default country_select and state_select plugins.

CARMEN the toolkit is an open-source collection of software for mobile robot control. CARMEN is modular software designed to provide basic navigation primatives including: base and sensor control, logging, obstacle avoidance, localization, path planning, and mapping.

35 questions
1
vote
1 answer

How to pre select a state in Rails Carmen state_select

What are the options I can pass in a state_select. I am trying to do :selected => state and its not working. <%= f.state_select :state, 'US', {:prompt => '--Select One--', :selected => state}, :tabindex => autotab, :id => 'state_select, :state =>…
ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52
0
votes
2 answers

On dropdown select, redirect to (Rails 3)

I would like to have a collection of all countries displayed as a dropdown. When a country is selected, I'd like to redirect to the root_path with the selected country as a parameter [i.e. root_path(:country => selected_country)]. I've found the…
neon
  • 2,811
  • 6
  • 30
  • 44
0
votes
1 answer

undefined method `reject' for false:FalseClass in Carmen::Country.named("Libya").subregions?

I'm using rails version 5.1.5 and Carmen, and when I do: Carmen::Country.named("Libya").subregions? in the rails console, after including carmen succesfully, I get this error: "NoMethodError: undefined method `reject' for false:FalseClass" But…
0
votes
0 answers

undefined method `priority_countries=' for Carmen:Module (NoMethodError)

New to Rails and Ruby on Rails, the code in file /host_share/my_application/config/initializers/countries.rb Carmen.priority_countries = %w(US CA MX) Carmen.excluded_countries = ["AC", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG",…
riksof-zeeshan
  • 531
  • 9
  • 27
0
votes
1 answer

Rails - calling partial from one controller in another controller

I am trying to select a country and its region in a form to the db. I have a form that appears in sessions#new action of the view but is located in access_requests/_form.html.slim. It posts to access_requests#create. In the form I have a…
Mike Glaz
  • 5,352
  • 8
  • 46
  • 73
0
votes
1 answer

carmen-rails subregion select (combine Canadian provinces and US states)

I have a dropdown with US states and territories. I would like to add Canadian provinces so that the entire list is states/provinces in alphabetical order. Currently I have this code which lists all US states and territories: = extra_fields.input…
Mike Glaz
  • 5,352
  • 8
  • 46
  • 73
0
votes
4 answers

how to give id with f.country_select in carmen gem

Hi I am using gem 'carmen-rails' In my view I have written this <%= f.country_select :country, prompt: 'Please select a country', :id=>'curr-country' %> but its not taking this id 'curr-country'. Please guide how…
Dinshaw Raje
  • 933
  • 1
  • 12
  • 33
0
votes
0 answers

Facing issue in fetching state names using carmen gem

Hi I am using gem 'carmen-rails' in my app I am having this type of association class Employee < ActiveRecord::Base has_one :contact has_one :permanent_address accepts_nested_attributes_for :contact, :permanent_address end and in my…
Dinshaw Raje
  • 933
  • 1
  • 12
  • 33
0
votes
0 answers

I can't get Carmen-Rails to work

I've been unable to get Carmen-Rails to work at all, and I'm really not sure what's going on. (That particular GitHub project is very poorly documented.) Simply put, I'm using the code specified in the demo application but am seeing nothing on my…
Michael P.
  • 1,373
  • 3
  • 12
  • 33
0
votes
1 answer

ruby attr_accessor missing method

New to RoR, I'm using the Carmen gem, running a rake gives me the error: Failed: NoMethodError: undefined method `excluded_states=' for Carmen:Module but the gem includes the attr_accessor method with :excluded_states in the args. Doesn't the…
Brad Borch
  • 309
  • 1
  • 14
0
votes
1 answer

Carmen-Rails gem error undefined method 'country_code'

Hello everyone I am trying to install the carmen-rails gem and keep getting the error "Undefined method 'country_code' My controller: def new @user = User.new end def create @user = User.create( :country_code, :state_code ) end My User…
user3763875
  • 319
  • 2
  • 10
0
votes
2 answers

carmen rails undefined method `country_code' for nil:NilClass

I'm having the following error while trying to pass locals to the partial: undefined method `country_code' for nil:NilClass This is what my code looks like: Trial <%=…
user3777245
  • 5
  • 1
  • 4
0
votes
1 answer

Reusing partial with FormBuilder elements across multiple forms and AJAX

I'm using Carmen and carmen-rails to have an ajax-powered select-a-country, states-list-populates setup. I'm more or less using the code right from their demo, and it works really well. Except: I want to reuse my "address" partial among several…
Tim Sullivan
  • 16,808
  • 11
  • 74
  • 120
0
votes
1 answer

adding new module to carmen

i am trying to make a module in carmen through which i can interface ax 3500 motordriver.. i have written the code but i am not able to add a new module properly.... there is not enough documentation about adding new module to carmen if anyone has…
deepak
  • 1
  • 2
0
votes
2 answers

Using CARMEN Robot Navigation Toolkit with Hoyuko Laser

I'm currently working with CARMEN (http://carmen.sourceforge.net/), and I'm trying to make a robot navigate using the CARMEN toolkit and a Hoyuko URG-04LX. Even though the laser does work, and CARMEN reads the data (I checked running the CARMEN…
Pablo Hevia-Koch
  • 512
  • 1
  • 4
  • 9