similar to: How do you create a simple search?

Displaying 20 results from an estimated 80000 matches similar to: "How do you create a simple search?"

2006 Jun 07
5
little Live search problem
Works fine but when you use backspace or delete on the search word and it hits 0 characters it displays ALL the Test names in the database! def live_search @phrase = request.raw_post || request.query_string a1 = "%" a2 = "%" @searchphrase = a1 + @phrase + a2 @results = Test.find(:all, :conditions => [ "test_name LIKE ?", @searchphrase])
2006 Apr 18
4
IN-PLACE FORM EDITING
Ive been following the rails recipes (great book) and wanted to have a larger a text field when editing in place. The chapter it mentions that I can "force the InPlaceEditor to create either a text ?eld or a <textarea> ?eld, using the :rows option to in_place_editor_?eld( ). Then any value greater than 1 will tell InPlaceEditor to generate a <textarea>." It
2006 May 16
5
Google Map problems
I followed the setup from http://cartographer.rubyforge.org/ but keep getting this error - NoMethodError in Sandbox#map Showing app/views/layouts/sandbox.rhtml where line #4 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] Extracted source (around line #4): 1: <html> 2: <head>
2006 Feb 27
0
Simple Namespace Question
I put the following code into my application_helper.rb file, which will allow super fancy ajax pagination blah blah blah. Now the problem is, it''s not being identified. I''m running Rails 1.0.0, and froze edge, so it''s sitting in /vendor. The actual pagination_helper.rb file is appropriately sitting in: /vendor/rails/actionpack/lib/action_view/helpers
2006 Apr 10
1
column.name question....
rHTML is <% for column in Wizard.content_columns %> <p> <%=h @wizard.send(column.name) %> </p> <% end %> It outputs: Robs Site Heading logo.jpeg London ------ Bascally 1 line for each column in the database. How do I edit the rhtml so I can break up the output? For instance JUST have ''Robs Site'' display nothing else. That mysql column is
2006 Apr 14
6
Login Generator with Extensible authorisation
I want my web app to have a signup/login generator but have 2 tiers of users - normal and premium. There seems to be lots of login generator and engines with scattered tutorials about extensible authorisation and Im lost as which is the ''best'' or most ''easy to use'' solution. Anyone had success in this area? -- Posted via http://www.ruby-forum.com/.
2008 Feb 05
0
prototype-1.6.0.2 Newbie Why is AJAX.request fired 3 times?
Hello list! I am taking my first steps with AJAX and decided to give prototype a try. - I add a reference to the script to my page - Then somewhere near the bottom of the page I fire up: new Ajax.Request(''ws_adrestype.php'', { method:''get'', requestHeaders: {Accept: ''application/json''}, onSuccess:
2006 Jul 19
0
AJAX burning up the cpu
I am using lighttpd to serve up pages for my rails app and one of my actions uses two pieces of AJAX code. Both are calls to periodically call remote, but to two different actions that simply update a status and message field on the page. When the AJAX code is present in the page and even just one person is viewing the page the instace of dispatch.fcgi on the server starts using 99.9% of the
2005 Dec 27
3
Trouble combining :has_many, :finder_sql and :conditions to create a sub-search
I''m sure there''s something right under my nose that I''m missing. I have two tables with two parallel one-to-many relationships. I wish to use the :finder_sql parameter to essentially ''or'' the two foreign keys. What isn''t working for me is performing a ''sub-search''. Let''s say the tables are "stores" and
2006 Mar 10
3
[Prototype] understanding evalScripts
Hi, I have a misunderstanding of what I though evalScripts would do vs what it actually does. I''m wondering if there''s a way that I can make it do what I want. my initial page: <html> <head> <script... var page = ''initial''; ... <body> <div id="replaceMe" <script... page = ''in
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to this php one? http://tips-scripts.com/?tip=form_mail#tip Or is it easier just to use the php with RoR? -- Posted via http://www.ruby-forum.com/.
2005 Jul 08
4
Browser compatibility goes back how far?
I asked this on the Rails list, but it might be more appropriate here. When we''re estimating how many users would have access to our site if we choose to use AJAX and script.aculo.us -style javascript, what kind of percentage are we looking at? 50%? 75%? Does this kind of fancy JS work on IE 5.0, or earlier? Thanks! Duane Johnson (canadaduane)
2006 Mar 15
0
Raise your hand if you''re going to the MySQL conference
If you are attending the MySQL User Conference 2006, you are encouraged to come attend my session about Applied Ruby on Rails and AJAX. The session information is as follows: Applied Ruby on Rails and AJAX Farhan Mashraqi Track: LAMP, Community Projects Date: Thursday, April 27 Time: 2:20pm - 3:05pm Location: Ballroom B Adoppt (http://adoppt.com) is a fully
2008 Sep 03
0
saving to mysql while displaying a partial that calls for the list of mysql items lags
Hi, Originally this was part of my highlighting question but now after debugging and slicing up the problem i found that the problem was not rjs but that saving to database does not sync with the ajax partial Controller code: ____________________________________________ def add_to_cart @sguser = Sguser.find(params[:ad]) @lineprice = SglineItem.find(:all, :conditions => "sguser_id =
2013 Jun 26
2
having isues with creating a ajax call in my simple rails application ,
hi all , having isues with creating a ajax call in my simple rails application , can any body be available for some time to help on mail or chat ?? -- 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, send an email to
2006 Feb 18
3
Edit in Place
I need help using In Place Editor by script.aculo.us #controller def my_action #get the text to display initially @fancy_text = "Some fancy *bold* and _emphasized_ text." end def update_text #save your text here, and return the saved value @fancy_text = params[:value] render :layout => false, :inline => "<%= textilize( @fancy_text ) %>" end
2006 May 04
1
Ferret and rails question
Is ferret the best way to implement a search option in your app? If so what is a best way to do it - the plugin or the wiki tutorial? -- Posted via http://www.ruby-forum.com/.
2006 Dec 14
0
Instant Ferret Search aka Ajaxed
I have a question; I am trying to implement an instant feedback search with ferret, similiar what we know with Ajax and MySQL. Does anyone have an idea regarding why a normal observation field won''t work with ferret? Any help would be greatly appreciated, and yes Ferret is amazing. Thanks upfront. -- Posted via http://www.ruby-forum.com/.
2007 May 07
0
set cursor in text_field_tag?
Let''s say I''ve text_field_tag A and B. I type something in A and hit the tabulator-key. An observe_field- helper-method gets triggered, some fancy Ajax-JS-stuff happens, the formerly disabled field B gets enabled and now I''m able to type into textfield B. No, how can I say with JS/Prototype/Railshelpers that I''d like the cursor to jump right in textfield B
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a bit of help from the Agile book, some googling around, and a bit of trial-and-error, but I''m really stuck with this one (very much an Ajax newbie): I know how to gracefully degrade an AJAX newpost type call so it can appear inline or (for those without JS support) go to a new page (put an ":href