jim / carmen-demo-app Goto Github PK
View Code? Open in Web Editor NEWA sample application that illustrates how to use carmen-rails.
A sample application that illustrates how to use carmen-rails.
Hi ,,really you made a great and so simple example..but I need to show the country name and state name not the coded ones ,,regards
This section of code in the readme demo:
<%= f.country_select :country_code, priority: %w(US CA), prompt: 'Please select a country' %>
raises an error as written around the priority parameter. The error traces all the way to country-select.rb at line 18
If I understand correctly, it's because US and CA don't exist in the countries array. Also, I believe the right parameter name is :priority_countries and not :priority as indicated.
What is the intent of building an array of "US", "CA" ? Which countries are they suppose to be referring to?
IN your sample code i have used the below lines, and tried to pass class and an arguments here. but it doesn't take class variable.
<% elsif country.subregions? %>
<%= subregion_select(:order, :state_code, parent_region) %>
<% else %>
to
<% elsif country.subregions? %>
<%= subregion_select(:order, :state_code, parent_region,class:"from-control") %>
<% else %>
plz, help me . i am using this code in the live project.
Hi, I'm trying to use carmen-rails in one of my apps and I get the next error when starting the rails server.
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.2-p0/specifications/carmen-1.0.0.beta2.gemspec]: Illformed requirement ["#Syck::DefaultKey:0x00000109445f70 2.6.1"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.2-p0/specifications/carmen-1.0.0.beta2.gemspec]: Illformed requirement ["#Syck::DefaultKey:0x00000109445f70 2.6.1"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.2-p0/specifications/carmen-1.0.0.beta2.gemspec]: Illformed requirement ["#Syck::DefaultKey:0x00000109445f70 2.6.1"]
Could not find carmen-1.0.0.beta2 in any of the sources
I added gem 'carmen-rails' to gemfile and bundle install shows:
Installing carmen (1.0.0.beta2)
Using carmen-rails (1.0.0.beta3)
Any hints?
Rails 3.2.3
Ruby ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.