similar to: (nebie) Autocomplete and many to one relationship?

Displaying 20 results from an estimated 4000 matches similar to: "(nebie) Autocomplete and many to one relationship?"

2006 Feb 10
5
Re: Manually running dispatch.fcgi fails (Please help!!)
I''m really lost on this issue. Do I need to reinstall rails / gems? The rest of my rails setup seems to be working. I just can''t run dispatch.fcgi. (Details in original message below). I have no idea how to troubleshoot this. I''m not even positive it is supposed to be runnable from the command line. I found a troubleshooting guide that implied it was supposed to
2005 Dec 27
0
Edge Rails idea -- was [DRY relative to edit and show]
Just got around to understanding your idea Rich. Your idea seems to apply to every controller with new/edit/show views, so I think this is a better idea for the edge rails folks to implement generically than for a newbie like me do as a one-off. Thanks Greg On 12/23/05, Rich Clingman <Rich-xT5DcnBKZlNBDgjK7y7TUQ@public.gmane.org> wrote: > > > It would be nice if rails had a
2006 Jul 10
3
search plugin?
All, I know there are 3 or 4 search plugins out there. I''m trying to find one that will allow me to search associated fields. My database content is pretty small, so efficiently is not so critical. On the other hand I have ton of :belongs_to type fields, so I need something that works well with the Rails models. Any recommendations? == Example of what I need to work Assume I have a
2005 Dec 27
3
created_on & updated_on - helper to display date only
All, My initial list is rather busy. I would like to shorten the created_on and updated_on fields to just display the date, not the time. Best wold be a simple 12/28/05 type of presentation. I''ve found the format helpers in rdoc. (ie. distance_of_time_in_words_to_now ), but none seem to be what I''m looking for. How do I control the date format of a timestamp field? Thanks
2006 May 05
2
newbie ruby string match question
All, I want to know in the Application.rb controller if I''m on the login screen. When I''m on the page I care about the controller variable is "#<ActiveRbac::UserController:0x408b3d6c>" So I want something like: if controller contains ActiveRbac::UserController What is the right syntax for the above? Thanks Greg -- Greg Freemyer The Norcross Group Forensics
2005 Dec 22
4
Is "case" a magic name
I''m a newbie. My first app is using a table called cases. With just "scaffold :case" I get the basic list to show up. I just did a "generate scaffold case case" (I think that is correct). Now when I try to list my cases, I''m getting a syntax error on all of the view source code that references "case". ie. <% for case in @cases %> Thanks
2009 Oct 29
0
Javascript in text field with autocomplete
If I am using the autocomplete plugin, and I have a text field specified in a form that incorporates autocomplete, such as: <%= text_field_with_auto_complete :doctor, :organization, :autocomplete => "off" %> how can I put javascript event handlers to if (e.g. keypress, onchange, etc.) ? WHat I really want to do is call a method in my controller if either: 1. The text field is
2006 Jan 16
2
Basic (newbie) Webrick / ssl config question
I have a simple Intranet app I want to make accessible via the Internet for remote access by our employees. I want to use ssl (https) connections and I''ve found enough messages to imply Webrick as included in rails can do the job. The message at http://wrath.rubyonrails.org/pipermail/rails/2005-January/001993.html even appears to tell me exactly how to do it by modifying
2010 Jan 07
1
text field with autocomplete
Hey everybody, I am using text field with autocomplete in my posts new action. That works great. Response from autocompleter in firebug: POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms but if I use the same in edit action it fails and I got this error. POST http://localhost:3001/posts/781/auto_complete_for_tag_name 404 Not Found 81ms *** POSTS controller: *** def
2006 May 08
3
MVC newbie question
All, Is it possible for a view to call back to a controller method? If so, what is the syntax? === details I have a list view that I want to filter out inactive rows based on several table fields being zero, old, etc. It would seem I should create a "filtered" method in the controller (which I have done). Then invoke if from the view like: for row in @rows continue if row.filtered
2006 May 30
0
autocomplete - updating 2 or more fields
I want to use autocomplete (text_field_with_auto_complete) to update several field s if a match is found. I.e. a user types something in the autocomplete field, a match is found, the application then goes and fetches some more values from the database and populates some fields on the form based on the match found. Has anybody done anything like this? Any advice very much appreciated. Many
2006 Feb 09
0
pass values with autocomplete textfield
Hi all, I have a simple app that has an autocomplete textfield in my view. I now want to be able to pass the value of a select to my controller when my auto_complete_for_location_name is called. My goal is to be able to filter the autocomplete results by the value of the select. My view code looks like this: <%= form_remote_tag :update => "search_results", :url => {
2010 Jul 22
0
Autocomplete - Search Multiple Tables
I''m trying to implement Autocomplete on my site and allow customers to search for restaurants by name or city all from one search box. I can''t seem how to get one edit field to interact with Autocomplete from multiple controllers. I can add the appropriate code into the controllers to allow access on the page, but how would I modify: <% text_field_with_auto_complete
2006 Feb 09
2
Manually running dispatch.fcgi fails
I''m a newbie trying to setup lighttpd. It is failing with error 500. I tried running dispatch.fcgi by hand and I''m getting: # ./dispatch.fcgi /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant RailsFCGIHandler (NameError) from ./dispatch.fcgi:24 Not sure how to proceed from here.
2006 Feb 15
2
Search on ruby-forom.com is down?
The search feature at ruby-forum.com is currently broken. Is there another place to search the archives of this list? Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
2006 May 11
2
Adding user name to production log?
All, In the production log I have entries like: Processing OpportunityController#new (for 68.213.19.251 at 2006-05-11 10:18:36) [GET] Session ID: 345b455a2a36af8814081c388d8726f1 Parameters: {"action"=>"new", "controller"=>"opportunity"} Rendering within layouts/opportunity Rendering opportunity/new Completed in 0.02281 (43 reqs/sec) |
2006 Jan 16
2
My first test - named fixture not autoloading instance variable
I''m trying to write a test like the one at the bottom of page 148 in Agile Rails. I''m using rails 1.0 I''ve created the fixture correctly I''m pretty sure because the test database table is being populated per the fixture. I have what I think is a simple unit test: ========= require File.dirname(__FILE__) + ''/../test_helper'' class CaseTest
2008 Jan 15
2
Reproducible samba bug with directory name
I just recreated this bug in samba-3.0.26a-3.3. It is as simple as creating a directory named "F-08-6104 International Management Assoc." (without the quotes), then looking at the name of the directory via XP. I've done it twice now: OpenSUSE 10.2 + Samba 3.0.23d-19.7 + XFS, all from Novell OpenSUSE 10.3 + samba-3.0.26a-3.3 + XFS, all from Novell With both I get the same wrong
2006 Apr 04
4
Ruby 1.8.4 on SUSE 10.0 howto
All, I just installed ruby 1.8.4 on my SUSE 10.0 box. It was slightly convoluted so I thought I would post the solution here. Once this runs for a day or so I will try upgrading my rails to 1.1 === Ruby 1.8.4 on SUSE 10.0 Howto I downloaded the src.rpm from http://mirrors.kernel.org/opensuse/distribution/SL-OSS-factory/inst-source/suse/src/ruby-1.8.4-9.src.rpm Then I installed it with
2006 Jan 27
1
Basic Many-to-One association
Sari, I got the list display working without doing an explicit find. It took a bit of a conceptual convulution to get it to work. I was thinking of it has Many Cases have One status. There is no support for Many-to-One so I was a bit stumped. Then I realized you just have to turn around your thinking to say One Status has Many Cases. Thus it is a One-to-Many relationship. That is descriped