Displaying 20 results from an estimated 300 matches similar to: "searchlogic+date_select+ordering"
2006 Feb 16
1
Help with validation
I am trying to write some simple code post a form, update the database
and do some validation. I have 2 problems:
1) The validation fails but I can''t get hold of the error message
2) I can''t get the form to redisplay the previously entered data for the
user to correct.
I have 2 controllers:
user and holiday.
A user can request a new holiday by filling in a form. I have a
2006 Jul 06
1
How did I turn off params ?
I am trying to create an input form where subsets of the input data goes
into separate rows of the table (events).
I have created a proxy object (CompoundEvent) to hold all of the data,
and overridden its "save" method to create the several tuples.
This was almost working late last night when I did something that
stopped the params[] hash from getting any information from the post
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
I am unable to call a polymorphic scope using the searchlogic plugin
as it keeps on returning ''undefined method''. I am certain it is only a
problem within my project as I created a test project and I was able
to call a polymorphic scope using the searchlogic plugin.
I am hoping someone can provide a suggestion on how to debug this
issue.
My project consists of several gems, and
2010 Mar 09
1
Ruby 1.9 and Searchlogic problem
Hello,
After updating our Rails app to ruby 1.9 there are some problems with
searchlogic, here you can find the error :
Error : wrong number of arguments (1 for 0)
Full trace ( passenger ) :
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
`call''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
2010 Mar 06
1
searchlogic is_any needs to be switched to equals_any
Does "is_any" has a bug in searchlogic? "is_any" used to work fine
for me. All of a sudden now, for unknown reasons, when I write for
example :attribute_is_any => [1] , the sql output is "where
attribute != 1" which is the opposite of what I want of course.
Curiously, the problem only occurs when running with a web server
(mongrel). I see the problem in the
2010 Mar 23
1
has_many_polymorphs with searchlogic
Has anyone been able to use searchlogic with has_many_polymorphs?
Are they compatible?
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Jun 24
0
Using searchlogic with acts_as_taggable_on
Hi,
i have 2 model, Merchant and Items and using acts_as_taggable_on
Merchant has_many Items, and i try to find Merchant with search logic
including the tags
class Merchant < ActiveRecord::Base
acts_as_taggable
has_many :items
end
class Item < ActiveRecord::Base
acts_as_taggable
belongs_to :merchant
end
This works
>> Merchant.tagged_with(''Tag 1'')
but
2010 May 16
3
searchlogic
Hey
The guys at the searchlogic google groups seem to be asleep -.-
They didnt'' grant me permission to post yet.
But anyways, right now, I followed the searchlogic tutorial found here
-http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering-
and-searching-with-searchlogic/
however, in that tutorial, the results of the find displays all my
items, before i even search for
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
I am having problem starting my app, here''s the error message, i am
running Ubuntu 9.04 with Apache with Passenger:
The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message can be found below. To
solve this problem, please follow any instructions in the error
message.
Error message:
Missing these required gems:
2012 Aug 25
0
accepts_nested_attributes_for and fields_for not working!
I want to be able to create one menu object that has fields_for :brunch,
:lunch, and :dinner. The menu object has_many brunches, lunches, and
dinners, but each time I "edit", only one brunch, one lunch, and one dinner
object are added. I''m using carrierwave to upload brunch_menus,
lunch_menus, and dinner_menus (attributes of brunches, lunches, and dinners
respectively) as
2011 May 04
1
is not allowed as an instance variable name error
Hey all,
I get error like this:
ActionView::TemplateError
(`@content_for_details_view_builder__-626960428'' is not allowed as an
instance variable name) in app/views/shared/_details_view.haml:
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:75:in
`fields_for''
searchlogic (2.4.27) lib/searchlogic/rails_helpers.rb:64:in
`form_for''
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3.
My Rails2 app uses searchlogic heavily.
After googling i''ve come to know that searchlogic is not compatible
with Rails3 and need to use meta_search instead.
But i havent quite understood the usage of meta_search vis-a-vis
searchlogic.
If i have a User model with :name and :address fields, i am not able
to use the following
2006 Aug 02
2
Problem with date_select
Hi all.
I have a big problem with date_select helper, because i guess it can''t
resolve local variables to set correctly selected date.
Small example:
<% @client.charge_regs.each do |creg| %>
<%= form_remote_tag with_progress(:url => { :action => ''foo'' }) %>
<%= date_select ''creg'', ''valid_before'' %>
2006 Aug 14
0
date_select form
How can I define a desired date in the ActionHelper "date_select". I
want to select always the last date in the current month.
Select:
-------
June -> 2006-06-30
July -> 2006-06-31
and so on....
--
Posted via http://www.ruby-forum.com/.
2006 Jul 15
1
Trouble using date_select with blank options
I want to allow users to enter a day and a month, but not necessarily
a year. i.e. it should be optional.
If I select the day and month, but a blank year and then submit i get:
1 error(s) on assignment of multiparameter attributes
The paramaters regarding the date look like this:
{"date_of_birth(2i)"=>"3",
2006 Jul 24
1
Default in date_select
how to set dafault date in date_select plz explain with example
advance thx have a nice day
--
Posted via http://www.ruby-forum.com/.
2006 Jul 24
0
set day in date_select
hello gentlemen
how to set default day and default month in date_select. plz explain
with examples
advance thx
have a nice day
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
1
Plz answer my query in date_select
hello gentlemen
I want to set my (default)own date in date_select, how to do this, plz
explain with example
advance thx
have a nice day
regards
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
2
text_field and date_select in collection
hello,
i would like to display a collection of records on one page (e.g. an
author record with all his/her books).
a record contains a text_area (e.g. a description of the book) and a
date_select (e.g. when the book was published).
<% for @book in @author.books %>
<%= text_area ''book[]'', ''note'' %>
<%= datetime_select
2006 Jul 29
0
date_select with calendar
hello,
is there an improved data_select helper that would generate a small
window with a calendar (to enter a date value)?
(e.g. http://www.dynarch.com/projects/calendar but can be simpler)
thanks
ondrej