search for: state_name

Displaying 9 results from an estimated 9 matches for "state_name".

2006 Jun 19
10
text_field_with_auto_complete doesn|t work in edit/show view
Hi, I am using the autocomplete for text field with ''Scriptaculous'' and it works perfectly fine in "new" action. All the examples I see are only for the "new" action. But doesn''t default to the selected value/text in "edit/show" action? Is this possible or should I write custom code for "edit/show" action? Thanks, Hari --
2009 Mar 23
2
Select updates database?
...ns_id", :association_foreign_key => "industry_id" belongs_to :state My Controller: before_filter :login_required layout "admin" active_scaffold :grant_loan do |config| config.list.columns = [:agency, :gov_type, :title, :url] config.columns.exclude :state_name config.label = ''Grants and Loans'' columns[:state].form_ui = :select columns[:industries].form_ui = :select end Partial: <%= select :grant_loan, :business_type, [''for_profit'',''non_profit''], {:selected => @record.business_t...
2006 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same input field and relying on them to execute in the same order that they appear in the page. This has been working fine in FireFox, but it does not seem to work in MSIE; the requests come in and are processed in a different order. Now, I''ve always been a little hesitant about using this technique, but it always
2006 Aug 16
0
Multiple observer
...valign="top" align="left"> <td valign="top" align="left"> <select id="state[id]" name="state[id]"> <% @states.each do |state| %> <option value="<%= state.id %>"> <%= state.state_name %> </option> <% end %> </select> </td> <td valign="top" align="left"> <div id="city_container"> <select id="city_id" name="city_id" disabled="disabled"> <option value=...
2006 Aug 17
0
AJAX - Having Multiple SELECT (Drop Down), and dependency
...valign="top" align="left"> <td valign="top" align="left"> <select id="state[id]" name="state[id]"> <% @states.each do |state| %> <option value="<%= state.id %>"> <%= state.state_name %> </option> <% end %> </select> </td> <td valign="top" align="left"> <div id="city_container"> <select id="city_id" name="city_id" disabled="disabled"> <option value=...
2006 Jun 26
0
options_for_select-how to store cookie selected value ques.
...s[:state] = state end if !cookies[:state].blank? @default_state = cookies[:state] else @default_state = "" end # view - html State: <td><%= select_tag "stateid", options_for_select(@state_names, :selected => @default_state) %></td> SOURCE OF HTML <td>State</td> *** I WANT THE VALUE IN THE State value="5.0" as the cookie. <td><select id="stateid" name="stateid"> <option value="-1"&g...
2012 Aug 27
2
littler and rJava
Hello list, I'm having some difficulty getting rJava to load in littler. Even after a R CMD javareconf and a reinstall of littler, I get this: jlaing at xenon:~$ r -e "require(rJava)" Loading required package: rJava Loading required package: methods Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All, just in a spot of bother with this gem, I am trying to create a new location and get the above msg. here is my controller: class LocationsController < ApplicationController # GET /locations # GET /locations.json def index @locations = Location.all @json = Location.all.to_gmaps4rails end respond_to do |format| format.html # index.html.erb
2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugged so far that I know that @current_consultant.id contains the correct value. Any tips? cheers