Displaying 20 results from an estimated 10000 matches similar to: "Table name problem"
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all,
I''m looking for some insight on why my text_field_with_auto_complete
might not work in Internet Explorer. I''m using it in a fairly simple
way, without much customization.
I''ve broken it down and made a test page at
http://realty.colemanation.org/houses/test which shows the behavior I''m
having problems with. For me on Windows XP this page works
2006 Jan 11
0
Easy Question, I Think
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2009 Jun 18
1
undefined method `text_field_with_auto_complete'
Dear all:
I got the error in my rails 2.2.2 project on ma os x leopard. i did
as follow:
script/plugin install auto_complete
but when i start the server and try to approach the page which used
the auto_complete, it can''t find the helper method as the error told:
"undefined method `text_field_with_auto_complete'' ", than i try this
in script/console
helper.methods
i
2006 Jul 21
4
weird table pluralization problem
When I created a new project and a "equipment" model for an unknown
reason to me rails tried to query the table "equipment" and not
"equipments", does someone know why it did that ?
So I added
set_table_name "equipments"
in the model class and it now works but I don''t really understand why it
is required in the first place...
--
Posted via
2009 Jul 10
3
text_field_with_auto_complete
I need to pass a parameter in my text_field_with_auto_complete and am
struggling to discover how to do this. I have something like this:
<%= text_field_with_auto_complete ''user'', ''username'', {}, {:with =>
"''post=''@company_title.id"} %>
but because it is in a partial that pops as a result from a
remote_function_tag, I am
2011 Mar 23
0
Implementing auto complete for more than one field in Rails
Hi,
I have an app, which implements a group feature. Each group has n
members. Also, each group has a group specific profile pic to it.
I have been able to implement auto complete for the group feature
keeping in mind the group name alone. I have referred to the following
tutorial for the same:- http://railsforum.com/viewtopic.php?id=23188
I am using **ruby 1.8.7** and **rails 2.0.2** for
2006 May 22
0
Problems with "text_field_with_auto_complete"
Hi,
I am discovering RoR with Ajax and have some problem. I wanted to use the
helper "text_field_with_auto_complete" I didn t succed to obtain the visual
render (a drop down list) like here
"http://demo.script.aculo.us/ajax/autocompleter"<http://demo.script.aculo.us/ajax/autocompleter>.
Here is the code I use:
|# view
Just a little test:
<%=
2009 Oct 02
2
Plural version of the model detected, using singularized version. Override with --force-plural.
what is the proper way to make this work? --force-plural doesn''t seem
to change the results. this only seems to happen when you choose
words that the plural and singular is the same word.
script/generate scaffold equipment name:string description:text
warning Plural version of the model detected, using singularized
version. Override with --force-plural.
results in the following
2006 Jun 25
1
text_field_with_auto_complete nonsense (newbie question)
Hi everyone,
I have been introduced to ruby on rails a couple of days ago and it
really brings out the fun in programming for the Web. I''m trying to
implement a text_field_with_auto_complete as described in
script.aculo.us , as follows:
controller:
class SearchController < ApplicationController
auto_complete_for :recipe, :name
end
search.rhtml:
<html>
<head><%=
2008 Feb 07
4
text_field_with_auto_complete
I have the following in my view:
<% form_tag :action => ''detail'' do %>
Search for Sales Order Number:<br />
<%= text_field_with_auto_complete :sales_order, :id %>
<%= submit_tag " Go "%>
<% end %>
And I have the following in my controller:
auto_complete_for :sales_order, :id
This worked fine in 1.5, but
2006 Apr 16
2
:after_update_element on text_field_with_auto_complete
I have a a basic prototype coded:
#view
<%= text_field_with_auto_complete :student, :last_name, { :size => 15
},
:after_update_element => "alert(''hello world'');" %>
#controller
class ScoresController < ApplicationController
auto_complete_for :student, :last_name
end
If I take out the :after_update_element option everything works as
advertised.
2006 Jun 27
1
Scriptaculous Problem
Hi!
I am using the auto complete feature provided by Scriptaculous in an
Rails application.Here
is have to write following string in the view:
Select name:
<%= text_field_with_auto_complete :contact, :name %>
and i have to write following write in the controller:
auto_complete_for :contact, :name
But after putting in this code it does''nt work. I knw that i hve to
create a
2006 Feb 24
1
Autocompleter Problems
Hi,
I''m trying to get autocomplete to work but have been having some problems.
It seems that Ajax.Autocompleter(...) is not getting called. I''ve put in a
alert in control.js:
Autocompleter.Local = Class.create();
Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), {
initialize: function(element, update, array, options) {
window.alert("GOT
2006 Mar 14
2
autocomplete using other models
I''ve asked this in various ways but I can''t seem to get much traction -
my guess is because not many people are doing this.
I am working in a controller/views called placements. Placements
belongs_to :client
I have a clients model/table - clients has_many :placements
in placements/find...this works fine...
<%= text_field_with_auto_complete :placement, :clwholename, {} %>
2006 Jan 30
1
auto_complete_with_index_for
I have a crude hack to allow auto_complete to work with indexed text
fields. I needed it for a timecard entry form with an arbtirary
number of records which can be added/changed/delete willy-nilly by
users. One of the fields is a perfect candidate for autocomplete
since it references a database object with a large number of choices
and long descriptions. Using a select list is extremely ugly in
2006 Aug 01
1
Legacy Pluralized Table Names
I am connecting to a legacy DB that has some names plural and some not.
I have configured:
ActiveRecord::Base.pluralize_table_names = false
now when i make a table that has an s on the end, it truncates the s.
example:
Table name: foo_bars
Rails command: ruby script/generate FooBars
Response (localhost:3000/FooBars): uninitialized constant FooBar
It works fine with non-pluralized
2007 Oct 22
2
Strange scroll behavior of Auto Complete inside Active Scaffold.
Hi Everyone.
After a long weekend of testing some stuff out I finally got the auto
suggest working.
I have got a problem however in both IE and Firefox as the drop down
scrolls the page down to the element only when the up arrow is
pressed.
Here is a detailed example.
When I have
<%= text_field_with_auto_complete :product, :colour %>
in my product _form.rhtml override...
... and in my
2006 Jul 18
2
Scaffold a Plural table w/ No Pluralization in environment
Hi guys,
I have a situation here. I have my project set to no pluralization due
to legacy tables in environment.rb. Now, I have some new tables which
I''m starting to pluralize. When I do a generate a scaffold to this new
table:
script/generate scaffold my_tables table
it seems to work out fine for certain sections like
http://mysite.com/railsapp/new (which also inserts properly to
2005 Dec 28
5
simple scaffold question
How do I get scaffold to generate code for a table whos name is not plural
of the modelname I give to it. I.E., If I have an existing database, and
wish to generate scaffold code for existing tables, is this possible???
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails