Displaying 2 results from an estimated 2 matches for "united_kingdom".
2008 May 14
3
strip white in character strings
Dear all,
I have several datasets and I want to generate pdf plots from them.
I also want to generate automatically the names of the files. They are
country-specific and the element mycurrentdata[1,1] contains this
information.
So what I do is something like this:
pdf(file=paste(mycurrentdata[1,1], ".pdf", sep=""), width=...etc)
The only problem I have is that some of the
2009 May 27
9
Contingent Select Boxes - 2 Q's
...<option value="<%= state[1] %>"><%= state[0] %></option>
<% end %>
<% end %>
Then, in my AssociatesController, I put in the method _get_states:
def _get_states
#essentially, this requires the 2 letter code for the country
selected, so if ''united_kingdom'' is selected
#it converts to UK and gets its "states". It also handles the default,
which is already specified properly
q = params[:country]
if(q!=Carmen.default_country)
q1 = q.gsub!("_", " ")
if(q1!=q && q1!=nil)...