similar to: Add tabindex to country_select

Displaying 20 results from an estimated 100000 matches similar to: "Add tabindex to country_select"

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/.
2010 Jun 17
1
Problem with options_for_select
Hi, I have a problem with the form select. In the value field I have the generated html... <%= f.select :brand_id, options_for_select([[''Brands'', 0]] + @search_brands.map { |b| [b.name, b.id]}), {:id => ''cbxBrand'', :tabindex => (@tabindex += 1)} %> This is the html: <select name="search[brand_id]"
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
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?: <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="13" value="J24" checked="checked" id="forare">Ja <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="14" value="N24"
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
2011 Feb 07
2
Rails App permissions?
I can''t start my app and I suspect permissions and ownership. What permissions should a Rails App have? Can I set 755 on everything or should it be less on some files? -- 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 post to this group, send email to
2011 Mar 07
2
One Mailer for all
Can I have one mailer for all? Would that be called application_mailer.rb -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Oct 26
0
Prototype: focusFirstElement and tabindex -1 ?
Hi, I''m new to prototype but it seems like an EXELENT framework. But I got a problem with the focusFirstElement when the first element have a tabindex="-1" since when negative number the user are never able to tab the element, so I would not want them to get focus on the element either. Is there really any time when a user want the set the focus on an element with negative
2010 Aug 20
5
country state city drop down list rails
hi every one please tell me the recommended way to get country state city drop down list in rails any gem - plug-in tutorial thanks in advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
2013 May 31
11
A simple javascript alert not working
If I have a file in view /test called index.js.erb and in it a simple alert("hello") shouldn''t that run when I go to /test/index? It doesn''t. -- 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 unsubscribe from this group and stop receiving emails from it,
2011 Sep 16
2
Find a record in a find array
A find will make an array, right? Or is it a hash? Anyway, if I have several records in an array/hash, how can I find e.g. record with id 10 and it''s content? -- 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 post to this group, send email to
2011 Jul 27
20
Rails, jquery and Ajax
How do I make an ajax call and then update a div with a partial? I''ve tried this but it''s not working. Comment is created but the partial is not loaded. //view <a href="#" id="testlink">Testlink</a> <div id="commentlist"> </div> //controller def new @comment = Comment.new @comment.save
2008 Jun 17
0
how to set tabindex in date_select
<%= date_select(''user'', ''birthdate'', { :start_year => 80.years.ago.year, :end_year => 12.years.ago.year } ) %> work in rails 1.2.2 date_select(object_name, method, options = {}) I try many times but also didn''t know how to set tabindex in date_select --~--~---------~--~----~------------~-------~--~----~ You received this message
2010 Dec 05
14
Remove bundler
Can you remove bundler without any problem – for rails? -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2011 Aug 12
1
How to add new column into table when server is running?
Hi everybody, I have a problem: I want to insert a new column into a table (person, it ready exits in DB.). But i dont know to do what. Do yo have any idea to help me? Thank you for your reading. -- 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 post to this group, send email to
2011 Jul 14
3
Have Admin add users, not the Devise Sign Up form
I have Devise working. I have roles for users working. I even added custom fields to the User model and it seems that now everything is working fine. So people can now subscribe using the Sign Up form provided by Devise. But now I need Admins, to add users. Of course, I can''t use the Sign Up form for that. If I just use a regular User model, their passwords are blank. Or maybe the form
2012 Dec 24
4
Bad idea to add/remove associations in after_find
I have 2 distinct types of users (artists and curators) in my system and they currently share all associations (eg has_one :portfolio). However, a curator shouldn''t have a portfolio so I would like to only add that association when required. Obviously I could just return nil for that method, but it doesn''t feel right having that there in the first place. What''s the best
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
2011 Nov 19
3
undefined method `+@'
Any idea what might be wrong? ActionView::Template::Error (undefined method `+@'' for #<ActionView::OutputBuffer:0x00000002e51580>): -- 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 post to this group, send email to