similar to: text_field_with_auto_complete problem

Displaying 20 results from an estimated 300 matches similar to: "text_field_with_auto_complete problem"

2006 Jun 14
3
where to define a struct
Hello, I''m trying to use the following Struct in my web app: UserInfo = Struct.new( "UserInfo", :first_name, :last_name, :email, :domain_name ) I placed this in the environment.rb, thinking that it should be initialized only once. But when I try to access it from within my controller, I get: undefined method `UserInfo'' for #<UserController:0x243ad5c>. so
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
From: Gene Cumm <gene.cumm at gmail.com> Fix several calls to more_printf() as eventually printf() is called without a literal string which generate warnings with gcc and lead to errors when -Werror is active. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> The message "format not a string literal and no format arguments" at first seems strange but by doing this change
2003 Feb 25
2
syntax rules
hi, i lost half a day trying to figure out how r is parsing statements in multiple lines. can someone explain (or direct me to documentation) the following. consider the following statements in a program file, say foo.r: a <- 1 + 2; b <- {1 + 2}; {c <- 1 + 2}; d <- c(1, 2); if i do source("foo.r"), i get a=3, b=2, c=1, d={1,2}. according to the r language definition
2006 Jun 21
0
text_field_with_auto_complete broken in firefox?
I am seeing a problem with text_field_with_auto_complete in which the input does not get populated with the selected value, but only in firefox (1.5.0.4). Works in IE just fine. I have a super-simple mockup that shows this problem below. Can anyone please confirm for me that this does/does not work in firefox or point out my mistake? I''m wondering if I need to submit a bug? The example
2007 Jan 11
2
text_field_with_auto_complete() - problem
hello rubys, i got a problem with the text_field_with_auto_complete(). everthing''s working but unfortunately the items (which are for choosing) are filled into the input=text in a way that is unacceptable. the first 6 characzers are empty-spaces, than the item and at last 5 empty-spaces. doeas anybody know why? and maybe how to solve this problem? my code is following: view:
2007 Jul 17
0
text_field_with_auto_complete :after_update_element not firing
I''m pretty new to ruby and rails and have been racking my brain for a few hours on this one. I have set up a text_field_with_auto_complete and it works great. It talks to my controller correctly, firing my method that queries mySQL and returns a nice <ul> to select from all with CSS. Ok great. Now I want to be able to capture the ID of the item that the user will select from. I
2006 Jan 20
3
text_field_with_auto_complete
Hi, I am trying to use text_field_with_auto_complete, it works fine but when I click on an item (even if I use the up and down key and then type enter) th search panel disappears but the selected results is not shown in the text field. Even more, the text field becomes empty. Any idea? Thanks S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jan 25
2
text_field_with_auto_complete problem
I have some difficulties with text_field_with_auto_complete. I’m new to this, it just will not work, I must be doing something wrong. It would be great if someone could advise me. I have tried to follow advice available on the internet, so I don’t know what the problem is. The script gets as far as the breakpoint in the controller, but it doesn’t like the next line – giving the error message
2006 Jun 09
0
difference between @secure_password, secure_password
Hello, I have a User object that extends ActiveRecord::Base. And I have the following defined in it: .... after_validation :crypt_password ... def crypt_password # write_attribute("secure_password", User.encrypt(password)) self.secure_password = User.encrypt(password) end .. And this works. Where I am getting confused about is the difference between the following:
2006 May 15
0
losing validation error messages
Hello all, I am pretty new to Rails and have recently started on a simple project with it.. I have a simple home_controller and home/index.rhtml page that displays a login/registration form. The login/registration actions are handled by users_controller.rb. register action in users_controller always redirects back to :controller => "home", :action => "index".. The
2003 Feb 19
3
working with list
hi, i have two questions: (1) lookup: given a list of 'strings' in a list, i want to know the index of a given string in the list. if the string is not in the list, the index can be 0 or length()+1. for example, suppose i have names <- c("dog", "cat", "pig", "fish"); then i want lookup(names, "cat") to return 2 and lookup(names,
2009 Mar 01
15
Ajax in Rails
Hi All, New to the group, and new to learning rails. I''m having some trouble, i''ve done a few tutorials on creating some small apps with rails and am now starting to play around myself. I''ve been trying to create a simple form which when a user enters any data that data is displayed as a preview elsewhere on the page instantly, just like when creating an advert with
2006 Aug 07
0
multiple text_field_with_auto_complete in IE/Opera
I have a text_field_with_auto_complete in _each_ row of my /list table. I use the autocomplete box in a row to update info in that row. I noticed that all of them get the same id and name attributes (user_uid and user[uid]). This doesn''t cause a problem in firefox 1.5 on windows. However on IE 6/Opera 9 I can only get autocomplete in the first box, and that box on
2006 Aug 11
1
text_field_with_auto_complete (unable to use it more than once/page)
Any assistance would be greatly appreciated. I currently have 4 of these on my page but only the first one will trigger. When I change the order sequence, still, only the first one will work. Help! Many thanks in advance, Doris
2006 Jun 02
2
pass extra value through text_field_with_auto_complete?
Hi, I''m wondering if it is possible to pass an extra value (which I will use to further restrict my query) using text_field_with_auto_complete? Any suggestions would be appreciated! -Mike
2006 Jun 16
0
text_field_with_auto_complete question
First let me say that Im very new to rails, but Im a solid PHP programmer & Im very much enjoying the transition and working with such a nice framework. That said, Ive had my ups and downs over the past few weeks, such is to be expected as part of the learning process, but Ive run into a sort of brick wall, at least for my experience level. I am using the acts_as_taggable plugin in
2006 May 21
0
text_field_with_auto_complete in Internet Explorer
Hi, I''m trying to implement a search feature on my blog: http://not.justco.de. It works nicely in Firefox and Safari, but not in Internet Explorer. This is the code in my _search.rhtml: <%= text_field_with_auto_complete :post, :title %> This is in the controller: def auto_complete_for_post_title @results = Post.find(:all, :conditions => [ ''LOWER(title) LIKE
2006 Apr 13
0
text_field_with_auto_complete and foreign characters
I need a form where the user must enter a city name. I would like to use an autocomplete_field for the city name, so I have the following code in my view: <%= text_field_with_auto_complete ''entry'', ''city_name'', :size => 40 %> and in my controller I have the method: def auto_complete_for_entry_city_name @cities = City.find(:all,
2006 Apr 14
0
text_field_with_auto_complete and special characters
I have a problem with text_field_with_auto_complete. Everything works fine except when I type special characters like ?,?,?. They are not escaped. "oberver_field" has a with-option like this: :with => "''ort='' + escape($F(''ort''))" This works fine with umlauts, too. Is there a way to escape the user input using