Displaying 20 results from an estimated 1000 matches similar to: "Thinking Sphinx and Ransack in the same application?"
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering.
I have model Project, which has many tags through acts_as_taggable gem.
Project.rb:
class Project < ActiveRecord::Base
include PublicActivity::Common
belongs_to :customer
belongs_to :category
has_many :attachments, :as => :attachable
has_many :reports, :dependent => :destroy
has_many :messages, :dependent
2012 Sep 18
1
How can i get directory recursively?
In manifest i have this instruction:
file { "/etc/apache2":
owner => root,
group => root,
mode => 740,
recurse => true,
source => "puppet:///dist/apache2"
}
By syntax its right, but on client i see error:
err: /Stage[main]/Testing170/File[/etc/apache2]: Failed to generate
additional resources using
2013 Jul 08
2
Re: deadlock on connection loosing
On 07.07.2013 01:53, Александр wrote:
> В письме от Воскресенье, 30-июн-2013 03:41:37 пользователь Александр написал:
>> В письме от Вторник, 25-июн-2013 11:47:10 пользователь Michal Privoznik
....
>
> i have found source of problem, my code looks like this:
>
> int count = virConnectListAllDomains(connection, NULL, 0);
> ....
> domain = virDomainDefineXML(connection,
2013 Jun 18
2
Re: libvirt hang on domain attemp to create domain
В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik
написал:
> On 18.06.2013 07:14, Александр wrote:
> > good day, i am trying to create domain via virDomainDefineXML. and my
> > program hanging, also i failed to caonnect to libvirt daemon with
> > virt-manager after this, only killing libvirtd via SIGKILL and restarting
> > it solveing hang (i mean
2012 Sep 05
4
Suggestion: render filters
Will not be useful functionality similar
https://github.com/shell/rails3_before_render ? Something like
ActionController filters but not before action. Filters before render. See
also http://www.perfectline.ee/blog/ruby-on-rails-before-render-filter,
http://penkin.co.uk/rails3_before_render-plugin/. And don''t you know gem
for this? Thanks.
--
You received this message because you
2013 Jun 30
2
Re: deadlock on connection loosing
В письме от Вторник, 25-июн-2013 11:47:10 пользователь Michal Privoznik
написал:
> On 24.06.2013 11:36, Александр wrote:
> > libvirtd will lock if for example kill programm which established
> > connection,>
> > only sigkill + restart helps., to reproduce:
> > virConnectPtr libvirt_connection = virConnectOpen("qemu:///system");
> >
2013 Jun 24
3
deadlock on connection loosing
libvirtd will lock if for example kill programm which established connection,
only sigkill + restart helps., to reproduce:
virConnectPtr libvirt_connection = virConnectOpen("qemu:///system");
if(libvirt_connection == NULL)
{
std::cout<<"failed to connect to qemu:///system\n";
exit(-1);
}
exit(0);
2010 Dec 01
0
Thinking sphinx + rails 3 issue in results set
Hi All,
I am using rails 3.0 and i installed sphinx and added the following to
gemfile gem ''thinking-sphinx'', ''2.0.0'', :require => ''thinking_sphinx''
My structure is like below:
==========================
Model:
=====
class User < ActiveRecord::Base
include ActionView::Helpers::UrlHelper
has_one :profile, :class_name =>
2010 Dec 02
0
Thinking Sphinx sorting problem
Hello all,
I''m trying to get some records in my application to sort based on a SQL
calculated value and am getting no records returned. I have checked and
double checked and the query that TS is indexing is working out, but the
problem is with the controller.
Here is what I''m indexing:
----------------------------------------------------------
indexes
2014 Jun 03
0
Starting Thinking Sphinx on Joyent SmartOS with svcadm
I followed this tutorial: http://www.neo.com/2013/10/09/unicorn-on-joyent-smartos and the RailsCast about configuring Nginx and Unicorn, and successfully set up my first non-Passenger/Apache Rails app last weekend.
Buoyed by this success, I next set about trying to get ThinkingSphinx to restart when the server starts, and managed to get my server to run away with 115% server usage. (Oddly, while
2013 Jun 19
3
Re: libvirt hang on domain attemp to create domain
В письме от Среда, 19-июн-2013 09:35:27 пользователь Michal Privoznik написал:
> On 18.06.2013 22:21, Александр wrote:
> > В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik
> >
> > написал:
> >> On 18.06.2013 07:14, Александр wrote:
> >>> good day, i am trying to create domain via virDomainDefineXML. and my
> >>> program
2012 Jun 19
2
Thinking Sphinx Problem
Hi,
I am using *Thinking Sphinx version 2.0.11 *in one of my project. To create
an index I ran* **rake thinking_sphinx:index *and I got the following error
Generating Configuration to /home/saidev/Ubuntu
One/burgundy/ssearch/config/development.sphinx.conf
rake aborted!
At least one field is necessary for an index
Tasks: TOP => thinking_sphinx:index
(See full trace by running task with
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 Jun 16
1
searching on model and related attributes
Hi all,
Haven''t played with rails for a while so I''m a little stuck. I''ve got to
make a search functionality across models.
Let me try to explain this (sorry for lack of clarity, I''ve been reading
so many search gems etc that I''m a little fuzzy now):
* Stores have town and county fields
* Stores has_many Products which each have their own name and
2011 Nov 20
3
Use Ransack with radio buttons for boolean values
Hello
I''m trying to search for active and non active users. These radio buttons
work just fine except that it didn''t reselect itself after the form has
been submitted. So, what should I do to ensure it will be selected just
like how my text field populated automatically after the form has been
submitted?
= search_form_for @q do |f|
= f.radio_button :is_active_false, 1
=
2013 Jan 21
1
Set asset host port in a way similar to what application does
Concerning
http://stackoverflow.com/questions/13266603/rails-how-to-set-port-number-for-the-asset-hosts-in-development
I''m setting the full asset hosts in the environment files, being the one in
development http://localhost:3000 . But let''s say I restart the application
on port 3001. Assets won''t be fetched, and I have to change it accordingly
all the time in the
2013 Jun 20
2
Re: libvirt hang on domain attemp to create domain
On 20.06.2013 12:56, Alexandr wrote:
> On 20.06.2013 10:44, Michal Privoznik wrote:
>> On 20.06.2013 09:40, Александр wrote:
>>> В письме от Четверг, 20-июн-2013 09:15:14 Вы написали:
>>>> On 19.06.2013 21:24, Александр wrote:
>>>>> В письме от Среда, 19-июн-2013 09:35:27 пользователь Michal Privoznik
>>> написал:
>>>>>> On
2012 Jun 12
2
how to connect rails app using monodb
hi all
i ve installed monodb this is the first time ive installed it and don''t
have any idea how to use it. previously ive used MYSQL for my apps. now i
want to use monodb . can any one help me out how to use monodb . does it
have any interface just as MYSQL. as there is no yml file needed how do i
connect my app
thanks in advance
--
You received this message because you
2013 Jun 18
2
libvirt hang on domain attemp to create domain
good day, i am trying to create domain via virDomainDefineXML. and my program
hanging, also i failed to caonnect to libvirt daemon with virt-manager after
this, only killing libvirtd via SIGKILL and restarting it solveing hang (i
mean after restart i able to connect with virt-manager), i using following
domain xml
<?xml version="1.0" encoding="UTF-8"?>
<domain
2020 Sep 15
2
[EXTERNAL] Re: Simulation of load-store forwarding with MI scheduler on AArch64
Thanks for prompt response, Andy
This will work for cases when address is not modified. However this doesn’t seem to work for pre/post increment load stores.
Consider data to address forwarding:
$x0 = ldr x0, [x1]
$x0, $x2 = ldr x2, [x0, 16]!
The second instruction will have it’s own latency for address modification ($x0 register). So I don’t see how we can use ReadAdr stuff
here. May be