Displaying 7 results from an estimated 7 matches for "search_fields".
Did you mean:
search_field
2005 Dec 15
1
Ruby Hash wierdness
Hi
I''m having problems with using a hash. I put in a class and when I
retrieve it, it''s automagically become a string
ie
<%= button_link _("Export CSV"),
SearchParams.get_url_hash({ :action => :export_csv, :klass =>
Customer }, params, @search_fields) %>
Customer is a class that is available to my view
def export_csv
klass = params[:klass]
cond = SearchParams.get_search_conditions(klass, params, @search_fields)
set_csv_headers(klass)
csv_export(klass, cond)
end
but here klass (and params[:klass]) is a string? What I re...
2006 Apr 15
0
drag&drop strangeness
hi people!
I have a view like this:
# list.rhtml
<form id="search">
<ul style="list-style: none;">
<div id="searchfields">
<%= render "contacts/search_fields" %>
</div>
<div id="trash">
trash me
</div>
</ul>
<%= drop_receiving_element "search",
:update => "searchfields", :url => { :action => "add_search_field" } %>...
2005 Dec 19
2
Advanced search/filter use cases
I''ve been working on an application lately that has a lot of advanced
search and filtering functionality (with ranges and substring searches
for each attribute). Despite being a pretty common use case, this isn''t
supported particularly well by any framework I''ve used, including Rails.
I''d like to fix that. :)
Right now, my major pet peeves are:
1. Long,
2006 May 30
0
Problems when applying search to filter rows.
Hello,
I am trying to create in the main Layout of the application fields of
selection of fields of the model, and other to insert its value. Next I put
a search button, with the idea to leak by the search in the view of the
model where it executes this button. I have generated the views with
ajaxscaffold.
I do not know if what I try to do it does of this form or another one.
My code is the
2006 Jul 17
2
IndexedSearchEngine Question
Good evening --
I''m really new to Rails and I was looking for a way to use
IndexedSearchEngine with a "get" call instead of the default "post". I
have the script by itself on a page /myapp/app/view/search/rhtml and I
want to be able to bookmark the query string.
I can''t seem to find where in the code the call to form_tag is. This is
as likely as not a
2012 Feb 21
10
Search of multiple columns
I am currently writing a search method for my rails applications and at
the moment it works fine. I have the following in my game.rb:
def self.search(search)
if search
find(:all, :conditions => [''game_name LIKE ? OR genre LIKE ? OR
console LIKE ?'', "%#{search}%", "#{search}", "#{search}"])
else
find(:all)
end
end
No that searches
2012 Sep 08
4
dash symbol
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each
do |selector|
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to