Displaying 20 results from an estimated 6000 matches similar to: "Overwritting Countries Constant"
2006 Jul 08
10
A rant about parameters
Guys,
I''ve been chasing a problem with country_select for the past few hours
now. My intention was pretty simple...use the following line in a form:
<p><label for="country_region">Country</label>
<%= f.country_select :country_region, "United States" %></p>
However, for the life of me, I couldn''t get it to work. I kept getting
2006 Jun 16
3
us_states plugin
Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?
Thanks,
jeremy
2005 Mar 29
7
Fade Anything Technique (FAT)
Has anyone used the built in FAT (Fade Anything Technique) that exists in 0.11.1
of Rails? I could not find anything in the documentation so I was wondering if
anyone has any code snippets on how they used it?
Thanks for your help.
John
2005 Jun 06
14
Handling Images And Rails
On my website people will be able to upload images of themselves. I
was wondering how people are presently handling uploading, resizing
and optimizing images in Rails? Do you use a specific piece of
software to do it? What would you guys recommend? Any code from
RailsDay? :-)
Also, do you guys store the images in the DB or just as files? What
do you suggest? What are the pros and
2008 Mar 14
1
how do i get country_select and select to show values
Hi i am a newbee at rails and i am using the country_select and select
drop down boxes in my new.rhtml I can make these work fine but when i
try viewing it in my database and show and index they just wont appear,
I have tried to edited it to how do I go about showing these items
everywhere i am completely stuck.
if text field = f.text_field
then why doesnt country_select = f.country_select or
2007 Dec 06
8
Default value for country_select
Using Country_select how to have default valur set to United States.
I have a select drop down in my Ui to display the Country names.
But i need United tates to be selected as default value.
I use country_select to populate the country names.
This is how i use <%= f.country_select :country, :selected=>''United
States'' %>
i also tried
<%= f.country_select :country,
2006 Dec 10
1
how to add a class to country_select field
<%=country_select ''user'', ''country''%>
I have the above field, how can I add a class to this?
The api says this, if someone could explain how to get to the
html_options bit, without the others, that would be great?
country_select(object, method, priority_countries = nil, options = {},
html_options = {})
--
Posted via http://www.ruby-forum.com/.
2009 Jan 03
1
Not working country_select in Rails 2.2.2
country_select not working in Rails 2.2.2
How to fix it''
<%= country_select(:employee, :national, ["United States", "Russian
Federation"], {}) %>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2009 May 27
9
Contingent Select Boxes - 2 Q's
I have a form with contingent select boxes (the state is contingent on
the country selected, so when the country selected changes, the state
changes -- I am using the Carmen plugin for getting my state names and
country names together, but not the functionality I am interested in
achieving).
Everything works fine except I cannot figure out how to amend my code
such that:
A. When the form is first
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys,
This is the final list of the new maintainers of each plugin.
We need two more things to do:
First please the owners of the repos add the rest of the maintainers.
Second I will add a note on each rails/plugin mentioning this repos updates.
So from now on, if someone else is interested in helping/contributing
please send a message to the appropriate repo owner.
verification
2005 Mar 23
1
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
I am getting random can''t connect to MySQL server errors on my Rails application
located at http://www.thedatingguy.com/blog
Do you have any clue why this is happening?
This is the error:
Mysql::Error (Can''t connect to local MySQL server through socket
''/tmp/mysql.sock'' (61)):
2006 Feb 12
5
Passing Multiple Values In URL
Been a while since I programmed in Ruby and Rails and some of the
basic concepts I just loose so quickly. This one I can''t find any
examples of.
I want to pass two pieces of information in my URL. The :id plus I
want to pass my user_id. How do I pass it using the link_to?
Stupid question I know... but I can''t find the answer.
John Kopanas
http://www.kopanas.com
2006 Feb 13
3
Getting Rid of Error Divs around fields that have errors
Is there a way to get rid of the divs around an error field. These
divs are causing me headaches. Any suggestions :-)?
John Kopanas
http://www.kopanas.com
=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference
2006 Feb 16
5
Edge Rails, Ruby 1.8.2 and "uninitialized constant ''modelname''" error
I know it might seem like I am repeating myself but I can''t seem to
find the solution to my problem. I am trying to run edge rails using
"rake freeze_edge" and every time I do that my application stops to
work. I get an error on every page. I get a "uninitialized constant
modelname" error where modelname is the object being created for that
view
Has
2010 Apr 16
1
time_zone_select :priority_zones not working properly
I sent this earlier but I don''t think it ever came through. Sorry if this is a reposting.
When using :priority_zones for time_zone_select in a manner described
by the API docs for ActionView::Helpers::FormOptionsHelper I''m getting
errors.
Here is an API docs example:
time_zone_select( "user", ''time_zone'', TimeZone.us_zones, :default =>
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select
field, such as
<%= collection_select("job", "client_id" , @clients, "id", "name") %>
with onChange="xxx"
Anyone know how to make this work?
Thank you,
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Feb 11
2
Migrations and Unintialized Constants Error
I am running into a problem with two of my tables and the
"uninitialized constant" error when using migration.
I get the "uninitialized constant Note" when running the following
code in my migration file:
create_table :notes do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :title, :string
t.column :covered, :string
2006 Aug 09
3
select with country names
Hi,
I need to create a list of coutries in a driop down.
I''m aware of a function ''country_options_for_select'' however this jsut
seems to output a string of all countires.
How can I get this list in a drop down?
Thanks
scott
--
Posted via http://www.ruby-forum.com/.
2005 Dec 08
0
#3136 - Country codes in country_select
http://dev.rubyonrails.org/ticket/3136
Simple patch, but in following with others I figured I''d post a quick
email to this list.
All this does is adds functionality of country_select to allow people to
build country select boxes that use country codes. It doesn''t modify
default behaviour, and the test suite has been updated.
I''ve seen a few people trying to figure out
2006 Apr 23
3
custom form builder
In the API docs I found this:
"You can also build forms using a customized FormBuilder class. Subclass
FormBuilder and override or define some more helpers, then use your
custom builder "
I couldn''t find any further documentation on this. Where can I read more
about this formbuilder class? For starters, where would I define a
subclass of this class?
TIA,
Jeroen
--