thanks for answer. I ve checked log for all of them and I didn't see
anything wrong.
I ve also checked iotop, but I don't know how to see if everything is ok.
On Thursday, May 26, 2016 at 12:04:45 PM UTC+2, Greg Navis wrote:
>
> A requests goes through nginx -> unicorn -> rails. You can check log
Hi,
I have a server with 20Cores / 40Threads.
I used to have only one website app (rails / unicorn / nginx , 40 workers)
on it and everything was working well
recently I added a new website app (rails / unicorn / nginx, 2 workers) and
since this, I have much less requests for my first website.
Hi,
Does someone know rails polymorphic very well and can explain me how I can
do something similar than polymorphic and change dynamically the table name
for a polymorphic attribute.
I know already that normally you need a have a "_type" attribute to define
the table name, but I would like to d
it doesnt work either, still same problem
On Tuesday, September 22, 2015 at 12:40:39 AM UTC+2, Bráulio Bhavamitra
wrote:
>
> replace :table with the right table name?
>
> On Mon, Sep 21, 2015 at 2:27 PM Oto Iashvili > wrote:
>
>> so I tried this
>>
>> Clas
gt; Do it inside the class
>
> On Mon, Sep 21, 2015 at 10:26 AM Oto Iashvili > wrote:
>
>> thanks for answer. But Im not sure tu understand
>> where or when shall I call this ?
>> cause im already doing
>>
>> DetailsInfo.table_name = 'pencil'
22h52 dom, 20/09/2015, Oto Iashvili > escreveu:
>
>> Thanks a lot for answer, Unfortunately, it is an site existing for
>> several years, so I cant change model, so I really need to be able to
>> change "manually" the table_name or to make like a patch forc
On Sunday, September 20, 2015 at 10:09:03 PM UTC+2, Matt Jones wrote:
>
>
>
> On Saturday, 19 September 2015 12:03:47 UTC-4, Oto Iashvili wrote:
>>
>> Hi,
>>
>> I have a product class with category and a polymorphic attributes
>> details_info, that depending o
Hi,
I have a product class with category and a polymorphic attributes
details_info, that depending on category go to one or another table to get
the detail
Class Product
category
details_info
end
Class DetailsInfo
...
end
Class Pencil
include DetailsInfo
type
color
end
Class Notebook
thanks for answer
I was trying and it didnt change anything.
On Monday, May 4, 2015 at 9:27:27 PM UTC+2, Ruby-Forum.com User wrote:
>
> Between dynamically changing table names have you tried:
>
> Bbbb.reset_column_information
>
> .. before setting the new table name?
>
> --
> Posted via http:
Hi,
I have a problem with dynamic table_name with 4.2.1. With 2.1.9, it was
working well
here my simplify models :
class Aaaa < ActiveRecord::Base
has_one :, dependent: :destroy, :inverse_of => :
end
class Bbbb < ActiveRecord::Base
belongs_to :, :inverse_of => :
end
Bbbb.ta
On Mon, Jun 2, 2014 at 7:15 PM, Oto Iashvili
> > wrote:
>
> > I dont speak about number of visitors, but about number of request
> (mainly
> > bots). I would love to hav 2300 visitors per minutes , even 1300 would
> be
> > great. so for almost one year, I
analitycs, it is a bt decreasing too, but it is a bit too early
to really see anything as visits changed a lot from one day to another,
especially on weekend
thanks again for your help
On Tuesday, June 3, 2014 1:03:48 AM UTC+2, Hassan Schroeder wrote:
>
> On Mon, Jun 2, 2014 at 2:39 PM, Oto Ia
Hello,
for several months my site turned around 2300 request / min (according to
newrelic)
But since 3-4 days it dropped down to 1300 request / min
I changed nothing on my site. Maybe I 've just updated the server.
The site runs pretty well (about 120ms per request)
according to htop, server
Hi,
since today I have some issue when I try to stop / start / restart unicorn
I can't understand why but it seems to be mixing my local user and my
server user
on config/unicorn/production.rb I have
user 'userserver', 'userserver'
where 'userserver' is the name of the user on server
so when I
thanks for answer
On Monday, October 21, 2013 1:06:06 PM UTC+2, Frederick Cheung wrote:
>
>
>
> On Sunday, October 20, 2013 11:14:40 PM UTC+1, Oto Iashvili wrote:
>>
>> Hi,
>> I would like to understand how to calculate optimal value for "pool"
>> p
Hi,
I would like to understand how to calculate optimal value for "pool"
parameter in database.yml
I'm using rails 3, ruby 2, postgres, elasticsearch, unicorn, nginx
My server : 12 coeurs 24 threads ( I dont know if it is necessary for
define pool value)
unicorn : worker_processes 24
I have aro
Hi,
Im using nginx and rails for my site which contains url with georgian
letters ie განცხადებები so something like
http://gancxadebebi.ge/ka/%E1%83%92%E1%83%90%E1%83%9C%E1%83%AA%E1%83%AE%E1%83%90%E1%83%93%E1%83%94%E1%83%91%E1%83%94%E1%83%91%E1%83%98
It is mainly working perfectly but sometimes
Hi,
I have a page on my rails website that should be accessible only via a vpn
connection between my server and another one. Is it possible to check on
controller this ?
thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubsc
Hi,
im migrating a website from php to rails and devise. There is a user
table with password that are not encrypted. I made already a script in php
to migrate to data to new database, but I cant figure how to encrypt
password so i will work with devise. I foudn different solution on google,
b
Hi,
Im using route_translator gem, which is really great, but unfortunatly Im
stuck because special caracters are not recognized.
for instance for page /ru/войти , I have this error message
No route matches [GET] "/ru/%D0%B2%D0%BE%D0%B9%D1%82%D0%B8"
same for french special caracters like "
hi,
is there a clean way to remove all html tag of all attributes before
validation
I found acts_as_sanitized that seemed to be perfect, but for rails 2 :-s
thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from thi
Hi
for my app, I have several tables for users (franceusers, belgiumusers,
...) and I would like to use one or another depending on domain
I tried with table_name_prefix and table_name but it seems to not work
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others av
hi
I use devise and cancan
my model
class PostsController < ApplicationController
before_filter :authenticate_user!, only: [:create, :update, :destroy]
...
end
so an unauthentificate user can access new post form. Now when
unauthentificate user submit new or edit forms, he is redirected to l
hi
thanks for answer sorry I quite new in RoR. If I do how u said, will I have
to validate "manually" all the attributes for details ?
Le mercredi 30 janvier 2013 15:27:43 UTC+1, jim a écrit :
>
>
> On Wed, Jan 30, 2013 at 6:48 PM, oto iashvili
>
> > wrot
-polymorphic
Le mardi 29 janvier 2013 13:39:18 UTC+1, jim a écrit :
>
>
>
>
> On Tue, Jan 29, 2013 at 7:41 PM, oto iashvili
>
> > wrote:
>
>> Hi,
>>
>> thanks for answer. My pb with polymorphic is that I would have to create
>> first in db a
?
Le lundi 28 janvier 2013 01:10:30 UTC+1, jim a écrit :
>
>
>
>
> On Mon, Jan 28, 2013 at 6:27 AM, oto iashvili
>
> > wrote:
>
>> hi,
>>
>> i' trying to re-create my project from php to rails. But now Im faced
>> with a pb to witch I had
hi,
i' trying to re-create my project from php to rails. But now Im faced with
a pb to witch I had solution with php, but I cant figure how to make it
work with rails
here my tables
ads
id
category_id
title
text
ad_real_estate_details
id
ad_id
nb_room
floor
ad_car_details
i
Hi
I would like to have on my website a contact form: name, email, subject
(drop-down
list), a message, all this that would be dave in db, and a backend (admin)
to answer questions + some options like filtering by subject, sort by date ,
...
does know a gem that exists already or an app that wo
Hi,
I would like to have routes like
/en/petites-annonces/immobilier-3/location-4/lille-34/vends-ma-voiture-56
=> controller annonce#show with cat_id=3, cat_nom = immobilier,
souscat_id=4, souscat_nom = location, vil_id=34, vil_nom = lille et
annonce_id = 56
/en/petites-annonces/immobilier-3/l
29 matches
Mail list logo